/*
	Copyright (c) 2004-2012, The Dojo Foundation All Rights Reserved.
	Available via Academic Free License >= 2.1 OR the modified BSD license.
	see: http://dojotoolkit.org/license for details
*/

/*
	This is an optimized version of Dojo, built for deployment and not for
	development. To get sources and documentation, please visit:

		http://dojotoolkit.org
*/

//>>built
require({cache:{"dojo/string":function(){define(["./_base/kernel","./_base/lang"],function(_1,_2){var _3={};_2.setObject("dojo.string",_3);_3.rep=function(_4,_5){if(_5<=0||!_4){return "";}var _6=[];for(;;){if(_5&1){_6.push(_4);}if(!(_5>>=1)){break;}_4+=_4;}return _6.join("");};_3.pad=function(_7,_8,ch,_9){if(!ch){ch="0";}var _a=String(_7),_b=_3.rep(ch,Math.ceil((_8-_a.length)/ch.length));return _9?_a+_b:_b+_a;};_3.substitute=function(_c,_d,_e,_f){_f=_f||_1.global;_e=_e?_2.hitch(_f,_e):function(v){return v;};return _c.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(_10,key,_11){var _12=_2.getObject(key,false,_d);if(_11){_12=_2.getObject(_11,false,_f).call(_f,_12,key);}return _e(_12,key).toString();});};_3.trim=String.prototype.trim?_2.trim:function(str){str=str.replace(/^\s+/,"");for(var i=str.length-1;i>=0;i--){if(/\S/.test(str.charAt(i))){str=str.substring(0,i+1);break;}}return str;};return _3;});},"dijit/a11y":function(){define("dijit/a11y",["dojo/_base/array","dojo/_base/config","dojo/_base/declare","dojo/dom","dojo/dom-attr","dojo/dom-style","dojo/sniff","./main"],function(_13,_14,_15,dom,_16,_17,has,_18){var _19=(_18._isElementShown=function(_1a){var s=_17.get(_1a);return (s.visibility!="hidden")&&(s.visibility!="collapsed")&&(s.display!="none")&&(_16.get(_1a,"type")!="hidden");});_18.hasDefaultTabStop=function(_1b){switch(_1b.nodeName.toLowerCase()){case "a":return _16.has(_1b,"href");case "area":case "button":case "input":case "object":case "select":case "textarea":return true;case "iframe":var _1c;try{var _1d=_1b.contentDocument;if("designMode" in _1d&&_1d.designMode=="on"){return true;}_1c=_1d.body;}catch(e1){try{_1c=_1b.contentWindow.document.body;}catch(e2){return false;}}return _1c&&(_1c.contentEditable=="true"||(_1c.firstChild&&_1c.firstChild.contentEditable=="true"));default:return _1b.contentEditable=="true";}};var _1e=(_18.isTabNavigable=function(_1f){if(_16.get(_1f,"disabled")){return false;}else{if(_16.has(_1f,"tabIndex")){return _16.get(_1f,"tabIndex")>=0;}else{return _18.hasDefaultTabStop(_1f);}}});_18._getTabNavigable=function(_20){var _21,_22,_23,_24,_25,_26,_27={};function _28(_29){return _29&&_29.tagName.toLowerCase()=="input"&&_29.type&&_29.type.toLowerCase()=="radio"&&_29.name&&_29.name.toLowerCase();};var _2a=function(_2b){for(var _2c=_2b.firstChild;_2c;_2c=_2c.nextSibling){if(_2c.nodeType!=1||(has("ie")&&_2c.scopeName!=="HTML")||!_19(_2c)){continue;}if(_1e(_2c)){var _2d=+_16.get(_2c,"tabIndex");if(!_16.has(_2c,"tabIndex")||_2d==0){if(!_21){_21=_2c;}_22=_2c;}else{if(_2d>0){if(!_23||_2d<_24){_24=_2d;_23=_2c;}if(!_25||_2d>=_26){_26=_2d;_25=_2c;}}}var rn=_28(_2c);if(_16.get(_2c,"checked")&&rn){_27[rn]=_2c;}}if(_2c.nodeName.toUpperCase()!="SELECT"){_2a(_2c);}}};if(_19(_20)){_2a(_20);}function rs(_2e){return _27[_28(_2e)]||_2e;};return {first:rs(_21),last:rs(_22),lowest:rs(_23),highest:rs(_25)};};_18.getFirstInTabbingOrder=function(_2f,doc){var _30=_18._getTabNavigable(dom.byId(_2f,doc));return _30.lowest?_30.lowest:_30.first;};_18.getLastInTabbingOrder=function(_31,doc){var _32=_18._getTabNavigable(dom.byId(_31,doc));return _32.last?_32.last:_32.highest;};return {hasDefaultTabStop:_18.hasDefaultTabStop,isTabNavigable:_18.isTabNavigable,_getTabNavigable:_18._getTabNavigable,getFirstInTabbingOrder:_18.getFirstInTabbingOrder,getLastInTabbingOrder:_18.getLastInTabbingOrder};});},"dojo/dnd/autoscroll":function(){define(["../_base/lang","../sniff","../_base/window","../dom-geometry","../dom-style","../window"],function(_33,has,win,_34,_35,_36){var _37={};_33.setObject("dojo.dnd.autoscroll",_37);_37.getViewport=_36.getBox;_37.V_TRIGGER_AUTOSCROLL=32;_37.H_TRIGGER_AUTOSCROLL=32;_37.V_AUTOSCROLL_VALUE=16;_37.H_AUTOSCROLL_VALUE=16;var _38,doc=win.doc,_39=Infinity,_3a=Infinity;_37.autoScrollStart=function(d){doc=d;_38=_36.getBox(doc);var _3b=win.body(doc).parentNode;_39=Math.max(_3b.scrollHeight-_38.h,0);_3a=Math.max(_3b.scrollWidth-_38.w,0);};_37.autoScroll=function(e){var v=_38||_36.getBox(doc),_3c=win.body(doc).parentNode,dx=0,dy=0;if(e.clientX<_37.H_TRIGGER_AUTOSCROLL){dx=-_37.H_AUTOSCROLL_VALUE;}else{if(e.clientX>v.w-_37.H_TRIGGER_AUTOSCROLL){dx=Math.min(_37.H_AUTOSCROLL_VALUE,_3a-_3c.scrollLeft);}}if(e.clientY<_37.V_TRIGGER_AUTOSCROLL){dy=-_37.V_AUTOSCROLL_VALUE;}else{if(e.clientY>v.h-_37.V_TRIGGER_AUTOSCROLL){dy=Math.min(_37.V_AUTOSCROLL_VALUE,_39-_3c.scrollTop);}}window.scrollBy(dx,dy);};_37._validNodes={"div":1,"p":1,"td":1};_37._validOverflow={"auto":1,"scroll":1};_37.autoScrollNodes=function(e){var b,t,w,h,rx,ry,dx=0,dy=0,_3d,_3e;for(var n=e.target;n;){if(n.nodeType==1&&(n.tagName.toLowerCase() in _37._validNodes)){var s=_35.getComputedStyle(n),_3f=(s.overflow.toLowerCase() in _37._validOverflow),_40=(s.overflowX.toLowerCase() in _37._validOverflow),_41=(s.overflowY.toLowerCase() in _37._validOverflow);if(_3f||_40||_41){b=_34.getContentBox(n,s);t=_34.position(n,true);}if(_3f||_40){w=Math.min(_37.H_TRIGGER_AUTOSCROLL,b.w/2);rx=e.pageX-t.x;if(has("webkit")||has("opera")){rx+=win.body().scrollLeft;}dx=0;if(rx>0&&rx<b.w){if(rx<w){dx=-w;}else{if(rx>b.w-w){dx=w;}}_3d=n.scrollLeft;n.scrollLeft=n.scrollLeft+dx;}}if(_3f||_41){h=Math.min(_37.V_TRIGGER_AUTOSCROLL,b.h/2);ry=e.pageY-t.y;if(has("webkit")||has("opera")){ry+=win.body().scrollTop;}dy=0;if(ry>0&&ry<b.h){if(ry<h){dy=-h;}else{if(ry>b.h-h){dy=h;}}_3e=n.scrollTop;n.scrollTop=n.scrollTop+dy;}}if(dx||dy){return;}}try{n=n.parentNode;}catch(x){n=null;}}_37.autoScroll(e);};return _37;});},"dojox/grid/_View":function(){define(["dojo","dijit/registry","../main","dojo/_base/declare","dojo/_base/array","dojo/_base/lang","dojo/_base/connect","dojo/_base/sniff","dojo/query","dojo/_base/window","dojo/text!./resources/View.html","dojo/dnd/Source","dijit/_Widget","dijit/_TemplatedMixin","dojox/html/metrics","./util","dojo/_base/html","./_Builder","dojo/dnd/Avatar","dojo/dnd/Manager"],function(_42,_43,_44,_45,_46,_47,_48,has,_49,win,_4a,_4b,_4c,_4d,_4e,_4f,_50,_51,_52,_53){var _54=function(_55,_56){return _55.style.cssText==undefined?_55.getAttribute("style"):_55.style.cssText;};var _57=_45("dojox.grid._View",[_4c,_4d],{defaultWidth:"18em",viewWidth:"",templateString:_4a,classTag:"dojoxGrid",marginBottom:0,rowPad:2,_togglingColumn:-1,_headerBuilderClass:_51._HeaderBuilder,_contentBuilderClass:_51._ContentBuilder,postMixInProperties:function(){this.rowNodes={};},postCreate:function(){this.connect(this.scrollboxNode,"onscroll","doscroll");_4f.funnelEvents(this.contentNode,this,"doContentEvent",["mouseover","mouseout","click","dblclick","contextmenu","mousedown"]);_4f.funnelEvents(this.headerNode,this,"doHeaderEvent",["dblclick","mouseover","mouseout","mousemove","mousedown","click","contextmenu"]);this.content=new this._contentBuilderClass(this);this.header=new this._headerBuilderClass(this);if(!this.grid.isLeftToRight()){this.headerNodeContainer.style.width="";}},destroy:function(){_50.destroy(this.headerNode);delete this.headerNode;for(var i in this.rowNodes){this._cleanupRowWidgets(this.rowNodes[i]);_50.destroy(this.rowNodes[i]);}this.rowNodes={};if(this.source){this.source.destroy();}this.inherited(arguments);},focus:function(){if(has("ie")||has("webkit")||has("opera")){this.hiddenFocusNode.focus();}else{this.scrollboxNode.focus();}},setStructure:function(_58){var vs=(this.structure=_58);if(vs.width&&!isNaN(vs.width)){this.viewWidth=vs.width+"em";}else{this.viewWidth=vs.width||(vs.noscroll?"auto":this.viewWidth);}this._onBeforeRow=vs.onBeforeRow||function(){};this._onAfterRow=vs.onAfterRow||function(){};this.noscroll=vs.noscroll;if(this.noscroll){this.scrollboxNode.style.overflow="hidden";}this.simpleStructure=Boolean(vs.cells.length==1);this.testFlexCells();this.updateStructure();},_cleanupRowWidgets:function(_59){if(_59){_46.forEach(_49("[widgetId]",_59).map(_43.byNode),function(w){if(w._destroyOnRemove){w.destroy();delete w;}else{if(w.domNode&&w.domNode.parentNode){w.domNode.parentNode.removeChild(w.domNode);}}});}},onBeforeRow:function(_5a,_5b){this._onBeforeRow(_5a,_5b);if(_5a>=0){this._cleanupRowWidgets(this.getRowNode(_5a));}},onAfterRow:function(_5c,_5d,_5e){this._onAfterRow(_5c,_5d,_5e);var g=this.grid;_46.forEach(_49(".dojoxGridStubNode",_5e),function(n){if(n&&n.parentNode){var lw=n.getAttribute("linkWidget");var _5f=window.parseInt(_50.attr(n,"cellIdx"),10);var _60=g.getCell(_5f);var w=_43.byId(lw);if(w){n.parentNode.replaceChild(w.domNode,n);if(!w._started){w.startup();}_42.destroy(n);}else{n.innerHTML="";}}},this);},testFlexCells:function(){this.flexCells=false;for(var j=0,row;(row=this.structure.cells[j]);j++){for(var i=0,_61;(_61=row[i]);i++){_61.view=this;this.flexCells=this.flexCells||_61.isFlex();}}return this.flexCells;},updateStructure:function(){this.header.update();this.content.update();},getScrollbarWidth:function(){var _62=this.hasVScrollbar();var _63=_50.style(this.scrollboxNode,"overflow");if(this.noscroll||!_63||_63=="hidden"){_62=false;}else{if(_63=="scroll"){_62=true;}}return (_62?_4e.getScrollbar().w:0);},getColumnsWidth:function(){var h=this.headerContentNode;return h&&h.firstChild?(h.firstChild.offsetWidth||_50.style(h.firstChild,"width")):0;},setColumnsWidth:function(_64){this.headerContentNode.firstChild.style.width=_64+"px";if(this.viewWidth){this.viewWidth=_64+"px";}},getWidth:function(){return this.viewWidth||(this.getColumnsWidth()+this.getScrollbarWidth())+"px";},getContentWidth:function(){return Math.max(0,_50._getContentBox(this.domNode).w-this.getScrollbarWidth())+"px";},render:function(){this.scrollboxNode.style.height="";this.renderHeader();if(this._togglingColumn>=0){this.setColumnsWidth(this.getColumnsWidth()-this._togglingColumn);this._togglingColumn=-1;}var _65=this.grid.layout.cells;var _66=_47.hitch(this,function(_67,_68){!this.grid.isLeftToRight()&&(_68=!_68);var inc=_68?-1:1;var idx=this.header.getCellNodeIndex(_67)+inc;var _69=_65[idx];while(_69&&_69.getHeaderNode()&&_69.getHeaderNode().style.display=="none"){idx+=inc;_69=_65[idx];}if(_69){return _69.getHeaderNode();}return null;});if(this.grid.columnReordering&&this.simpleStructure){if(this.source){this.source.destroy();}var _6a="dojoxGrid_bottomMarker";var _6b="dojoxGrid_topMarker";if(this.bottomMarker){_50.destroy(this.bottomMarker);}this.bottomMarker=_50.byId(_6a);if(this.topMarker){_50.destroy(this.topMarker);}this.topMarker=_50.byId(_6b);if(!this.bottomMarker){this.bottomMarker=_50.create("div",{"id":_6a,"class":"dojoxGridColPlaceBottom"},win.body());this._hide(this.bottomMarker);this.topMarker=_50.create("div",{"id":_6b,"class":"dojoxGridColPlaceTop"},win.body());this._hide(this.topMarker);}this.arrowDim=_50.contentBox(this.bottomMarker);var _6c=_50.contentBox(this.headerContentNode.firstChild.rows[0]).h;this.source=new _4b(this.headerContentNode.firstChild.rows[0],{horizontal:true,accept:["gridColumn_"+this.grid.id],viewIndex:this.index,generateText:false,onMouseDown:_47.hitch(this,function(e){this.header.decorateEvent(e);if((this.header.overRightResizeArea(e)||this.header.overLeftResizeArea(e))&&this.header.canResize(e)&&!this.header.moveable){this.header.beginColumnResize(e);}else{if(this.grid.headerMenu){this.grid.headerMenu.onCancel(true);}if(e.button===(has("ie")<9?1:0)){_4b.prototype.onMouseDown.call(this.source,e);}}}),onMouseOver:_47.hitch(this,function(e){var src=this.source;if(src._getChildByEvent(e)){_4b.prototype.onMouseOver.apply(src,arguments);}}),_markTargetAnchor:_47.hitch(this,function(_6d){var src=this.source;if(src.current==src.targetAnchor&&src.before==_6d){return;}if(src.targetAnchor&&_66(src.targetAnchor,src.before)){src._removeItemClass(_66(src.targetAnchor,src.before),src.before?"After":"Before");}_4b.prototype._markTargetAnchor.call(src,_6d);var _6e=_6d?src.targetAnchor:_66(src.targetAnchor,src.before);var _6f=0;if(!_6e){_6e=src.targetAnchor;_6f=_50.contentBox(_6e).w+this.arrowDim.w/2+2;}var pos=_50.position(_6e,true);var _70=Math.floor(pos.x-this.arrowDim.w/2+_6f);_50.style(this.bottomMarker,"visibility","visible");_50.style(this.topMarker,"visibility","visible");_50.style(this.bottomMarker,{"left":_70+"px","top":(_6c+pos.y)+"px"});_50.style(this.topMarker,{"left":_70+"px","top":(pos.y-this.arrowDim.h)+"px"});if(src.targetAnchor&&_66(src.targetAnchor,src.before)){src._addItemClass(_66(src.targetAnchor,src.before),src.before?"After":"Before");}}),_unmarkTargetAnchor:_47.hitch(this,function(){var src=this.source;if(!src.targetAnchor){return;}if(src.targetAnchor&&_66(src.targetAnchor,src.before)){src._removeItemClass(_66(src.targetAnchor,src.before),src.before?"After":"Before");}this._hide(this.bottomMarker);this._hide(this.topMarker);_4b.prototype._unmarkTargetAnchor.call(src);}),destroy:_47.hitch(this,function(){_48.disconnect(this._source_conn);_48.unsubscribe(this._source_sub);_4b.prototype.destroy.call(this.source);if(this.bottomMarker){_50.destroy(this.bottomMarker);delete this.bottomMarker;}if(this.topMarker){_50.destroy(this.topMarker);delete this.topMarker;}}),onDndCancel:_47.hitch(this,function(){_4b.prototype.onDndCancel.call(this.source);this._hide(this.bottomMarker);this._hide(this.topMarker);})});this._source_conn=_48.connect(this.source,"onDndDrop",this,"_onDndDrop");this._source_sub=_48.subscribe("/dnd/drop/before",this,"_onDndDropBefore");this.source.startup();}},_hide:function(_71){_50.style(_71,{top:"-10000px","visibility":"hidden"});},_onDndDropBefore:function(_72,_73,_74){if(_53.manager().target!==this.source){return;}this.source._targetNode=this.source.targetAnchor;this.source._beforeTarget=this.source.before;var _75=this.grid.views.views;var _76=_75[_72.viewIndex];var _77=_75[this.index];if(_77!=_76){_76.convertColPctToFixed();_77.convertColPctToFixed();}},_onDndDrop:function(_78,_79,_7a){if(_53.manager().target!==this.source){if(_53.manager().source===this.source){this._removingColumn=true;}return;}this._hide(this.bottomMarker);this._hide(this.topMarker);var _7b=function(n){return n?_50.attr(n,"idx"):null;};var w=_50.marginBox(_79[0]).w;if(_78.viewIndex!==this.index){var _7c=this.grid.views.views;var _7d=_7c[_78.viewIndex];var _7e=_7c[this.index];if(_7d.viewWidth&&_7d.viewWidth!="auto"){_7d.setColumnsWidth(_7d.getColumnsWidth()-w);}if(_7e.viewWidth&&_7e.viewWidth!="auto"){_7e.setColumnsWidth(_7e.getColumnsWidth());}}var stn=this.source._targetNode;var stb=this.source._beforeTarget;!this.grid.isLeftToRight()&&(stb=!stb);var _7f=this.grid.layout;var idx=this.index;delete this.source._targetNode;delete this.source._beforeTarget;_7f.moveColumn(_78.viewIndex,idx,_7b(_79[0]),_7b(stn),stb);},renderHeader:function(){this.headerContentNode.innerHTML=this.header.generateHtml(this._getHeaderContent);if(this.flexCells){this.contentWidth=this.getContentWidth();this.headerContentNode.firstChild.style.width=this.contentWidth;}_4f.fire(this,"onAfterRow",[-1,this.structure.cells,this.headerContentNode]);},_getHeaderContent:function(_80){var n=_80.name||_80.grid.getCellName(_80);if(/^\s+$/.test(n)){n="&nbsp;";}var ret=["<div class=\"dojoxGridSortNode"];if(_80.index!=_80.grid.getSortIndex()){ret.push("\">");}else{ret=ret.concat([" ",_80.grid.sortInfo>0?"dojoxGridSortUp":"dojoxGridSortDown","\"><div class=\"dojoxGridArrowButtonChar\">",_80.grid.sortInfo>0?"&#9650;":"&#9660;","</div><div class=\"dojoxGridArrowButtonNode\" role=\"presentation\"></div>","<div class=\"dojoxGridColCaption\">"]);}ret=ret.concat([n,"</div></div>"]);return ret.join("");},resize:function(){this.adaptHeight();this.adaptWidth();},hasHScrollbar:function(_81){var _82=this._hasHScroll||false;if(this._hasHScroll==undefined||_81){if(this.noscroll){this._hasHScroll=false;}else{var _83=_50.style(this.scrollboxNode,"overflow");if(_83=="hidden"){this._hasHScroll=false;}else{if(_83=="scroll"){this._hasHScroll=true;}else{this._hasHScroll=(this.scrollboxNode.offsetWidth-this.getScrollbarWidth()<this.contentNode.offsetWidth);}}}}if(_82!==this._hasHScroll){this.grid.update();}return this._hasHScroll;},hasVScrollbar:function(_84){var _85=this._hasVScroll||false;if(this._hasVScroll==undefined||_84){if(this.noscroll){this._hasVScroll=false;}else{var _86=_50.style(this.scrollboxNode,"overflow");if(_86=="hidden"){this._hasVScroll=false;}else{if(_86=="scroll"){this._hasVScroll=true;}else{this._hasVScroll=(this.scrollboxNode.scrollHeight>this.scrollboxNode.clientHeight);}}}}if(_85!==this._hasVScroll){this.grid.update();}return this._hasVScroll;},convertColPctToFixed:function(){var _87=false;this.grid.initialWidth="";var _88=_49("th",this.headerContentNode);var _89=_46.map(_88,function(c,_8a){var w=c.style.width;_50.attr(c,"vIdx",_8a);if(w&&w.slice(-1)=="%"){_87=true;}else{if(w&&w.slice(-2)=="px"){return window.parseInt(w,10);}}return _50.contentBox(c).w;});if(_87){_46.forEach(this.grid.layout.cells,function(_8b,idx){if(_8b.view==this){var _8c=_8b.view.getHeaderCellNode(_8b.index);if(_8c&&_50.hasAttr(_8c,"vIdx")){var _8d=window.parseInt(_50.attr(_8c,"vIdx"));this.setColWidth(idx,_89[_8d]);_50.removeAttr(_8c,"vIdx");}}},this);return true;}return false;},adaptHeight:function(_8e){if(!this.grid._autoHeight){var h=(this.domNode.style.height&&parseInt(this.domNode.style.height.replace(/px/,""),10))||this.domNode.clientHeight;var _8f=this;var _90=function(){var v;for(var i in _8f.grid.views.views){v=_8f.grid.views.views[i];if(v!==_8f&&v.hasHScrollbar()){return true;}}return false;};if(_8e||(this.noscroll&&_90())){h-=_4e.getScrollbar().h;}_4f.setStyleHeightPx(this.scrollboxNode,h);}this.hasVScrollbar(true);},adaptWidth:function(){if(this.flexCells){this.contentWidth=this.getContentWidth();this.headerContentNode.firstChild.style.width=this.contentWidth;}var w=this.scrollboxNode.offsetWidth-this.getScrollbarWidth();if(!this._removingColumn){w=Math.max(w,this.getColumnsWidth())+"px";}else{w=Math.min(w,this.getColumnsWidth())+"px";this._removingColumn=false;}var cn=this.contentNode;cn.style.width=w;this.hasHScrollbar(true);},setSize:function(w,h){var ds=this.domNode.style;var hs=this.headerNode.style;if(w){ds.width=w;hs.width=w;}ds.height=(h>=0?h+"px":"");},renderRow:function(_91){var _92=this.createRowNode(_91);this.buildRow(_91,_92);return _92;},createRowNode:function(_93){var _94=document.createElement("div");_94.className=this.classTag+"Row";if(this instanceof _44.grid._RowSelector){_50.attr(_94,"role","presentation");}else{_50.attr(_94,"role","row");if(this.grid.selectionMode!="none"){_94.setAttribute("aria-selected","false");}}_94[_4f.gridViewTag]=this.id;_94[_4f.rowIndexTag]=_93;this.rowNodes[_93]=_94;return _94;},buildRow:function(_95,_96){this.buildRowContent(_95,_96);this.styleRow(_95,_96);},buildRowContent:function(_97,_98){_98.innerHTML=this.content.generateHtml(_97,_97);if(this.flexCells&&this.contentWidth){_98.firstChild.style.width=this.contentWidth;}_4f.fire(this,"onAfterRow",[_97,this.structure.cells,_98]);},rowRemoved:function(_99){if(_99>=0){this._cleanupRowWidgets(this.getRowNode(_99));}this.grid.edit.save(this,_99);delete this.rowNodes[_99];},getRowNode:function(_9a){return this.rowNodes[_9a];},getCellNode:function(_9b,_9c){var row=this.getRowNode(_9b);if(row){return this.content.getCellNode(row,_9c);}},getHeaderCellNode:function(_9d){if(this.headerContentNode){return this.header.getCellNode(this.headerContentNode,_9d);}},styleRow:function(_9e,_9f){_9f._style=_54(_9f);this.styleRowNode(_9e,_9f);},styleRowNode:function(_a0,_a1){if(_a1){this.doStyleRowNode(_a0,_a1);}},doStyleRowNode:function(_a2,_a3){this.grid.styleRowNode(_a2,_a3);},updateRow:function(_a4){var _a5=this.getRowNode(_a4);if(_a5){_a5.style.height="";this.buildRow(_a4,_a5);}return _a5;},updateRowStyles:function(_a6){this.styleRowNode(_a6,this.getRowNode(_a6));},lastTop:0,firstScroll:0,_nativeScroll:false,doscroll:function(_a7){if(has("ff")>=13){this._nativeScroll=true;}var _a8=this.grid.isLeftToRight();if(this.firstScroll<2){if((!_a8&&this.firstScroll==1)||(_a8&&this.firstScroll===0)){var s=_50.marginBox(this.headerNodeContainer);if(has("ie")){this.headerNodeContainer.style.width=s.w+this.getScrollbarWidth()+"px";}else{if(has("mozilla")){this.headerNodeContainer.style.width=s.w-this.getScrollbarWidth()+"px";this.scrollboxNode.scrollLeft=_a8?this.scrollboxNode.clientWidth-this.scrollboxNode.scrollWidth:this.scrollboxNode.scrollWidth-this.scrollboxNode.clientWidth;}}}this.firstScroll++;}this.headerNode.scrollLeft=this.scrollboxNode.scrollLeft;var top=this.scrollboxNode.scrollTop;if(top!==this.lastTop){this.grid.scrollTo(top);}this._nativeScroll=false;},setScrollTop:function(_a9){this.lastTop=_a9;if(!this._nativeScroll){this.scrollboxNode.scrollTop=_a9;}return this.scrollboxNode.scrollTop;},doContentEvent:function(e){if(this.content.decorateEvent(e)){this.grid.onContentEvent(e);}},doHeaderEvent:function(e){if(this.header.decorateEvent(e)){this.grid.onHeaderEvent(e);}},dispatchContentEvent:function(e){return this.content.dispatchEvent(e);},dispatchHeaderEvent:function(e){return this.header.dispatchEvent(e);},setColWidth:function(_aa,_ab){this.grid.setCellWidth(_aa,_ab+"px");},update:function(){if(!this.domNode){return;}this.content.update();this.grid.update();var _ac=this.scrollboxNode.scrollLeft;this.scrollboxNode.scrollLeft=_ac;this.headerNode.scrollLeft=_ac;}});var _ad=_45("dojox.grid._GridAvatar",_52,{construct:function(){var dd=win.doc;var a=dd.createElement("table");a.cellPadding=a.cellSpacing="0";a.className="dojoxGridDndAvatar";a.style.position="absolute";a.style.zIndex=1999;a.style.margin="0px";var b=dd.createElement("tbody");var tr=dd.createElement("tr");var td=dd.createElement("td");var img=dd.createElement("td");tr.className="dojoxGridDndAvatarItem";img.className="dojoxGridDndAvatarItemImage";img.style.width="16px";var _ae=this.manager.source,_af;if(_ae.creator){_af=_ae._normalizedCreator(_ae.getItem(this.manager.nodes[0].id).data,"avatar").node;}else{_af=this.manager.nodes[0].cloneNode(true);var _b0,_b1;if(_af.tagName.toLowerCase()=="tr"){_b0=dd.createElement("table");_b1=dd.createElement("tbody");_b1.appendChild(_af);_b0.appendChild(_b1);_af=_b0;}else{if(_af.tagName.toLowerCase()=="th"){_b0=dd.createElement("table");_b1=dd.createElement("tbody");var r=dd.createElement("tr");_b0.cellPadding=_b0.cellSpacing="0";r.appendChild(_af);_b1.appendChild(r);_b0.appendChild(_b1);_af=_b0;}}}_af.id="";td.appendChild(_af);tr.appendChild(img);tr.appendChild(td);_50.style(tr,"opacity",0.9);b.appendChild(tr);a.appendChild(b);this.node=a;var m=_53.manager();this.oldOffsetY=m.OFFSET_Y;m.OFFSET_Y=1;},destroy:function(){_53.manager().OFFSET_Y=this.oldOffsetY;this.inherited(arguments);}});var _b2=_53.manager().makeAvatar;_53.manager().makeAvatar=function(){var src=this.source;if(src.viewIndex!==undefined&&!_50.hasClass(win.body(),"dijit_a11y")){return new _ad(this);}return _b2.call(_53.manager());};return _57;});},"dijit/CheckedMenuItem":function(){require({cache:{"url:dijit/templates/CheckedMenuItem.html":"<tr class=\"dijitReset dijitMenuItem\" data-dojo-attach-point=\"focusNode\" role=\"menuitemcheckbox\" tabIndex=\"-1\">\n\t<td class=\"dijitReset dijitMenuItemIconCell\" role=\"presentation\">\n\t\t<img src=\"${_blankGif}\" alt=\"\" class=\"dijitMenuItemIcon dijitCheckedMenuItemIcon\" data-dojo-attach-point=\"iconNode\"/>\n\t\t<span class=\"dijitCheckedMenuItemIconChar\">&#10003;</span>\n\t</td>\n\t<td class=\"dijitReset dijitMenuItemLabel\" colspan=\"2\" data-dojo-attach-point=\"containerNode,labelNode\"></td>\n\t<td class=\"dijitReset dijitMenuItemAccelKey\" style=\"display: none\" data-dojo-attach-point=\"accelKeyNode\"></td>\n\t<td class=\"dijitReset dijitMenuArrowCell\" role=\"presentation\">&#160;</td>\n</tr>\n"}});define("dijit/CheckedMenuItem",["dojo/_base/declare","dojo/dom-class","./MenuItem","dojo/text!./templates/CheckedMenuItem.html","./hccss"],function(_b3,_b4,_b5,_b6){return _b3("dijit.CheckedMenuItem",_b5,{templateString:_b6,checked:false,_setCheckedAttr:function(_b7){_b4.toggle(this.domNode,"dijitCheckedMenuItemChecked",_b7);this.domNode.setAttribute("aria-checked",_b7?"true":"false");this._set("checked",_b7);},iconClass:"",onChange:function(){},_onClick:function(evt){if(!this.disabled){this.set("checked",!this.checked);this.onChange(this.checked);}this.onClick(evt);}});});},"dojo/hccss":function(){define(["require","./_base/config","./dom-class","./dom-construct","./dom-style","./has","./ready","./_base/window"],function(_b8,_b9,_ba,_bb,_bc,has,_bd,win){has.add("highcontrast",function(){var div=win.doc.createElement("div");div.style.cssText="border: 1px solid; border-color:red green; position: absolute; height: 5px; top: -999px;"+"background-image: url("+(_b9.blankGif||_b8.toUrl("./resources/blank.gif"))+");";win.body().appendChild(div);var cs=_bc.getComputedStyle(div),_be=cs.backgroundImage,hc=(cs.borderTopColor==cs.borderRightColor)||(_be&&(_be=="none"||_be=="url(invalid-url:)"));_bb.destroy(div);return hc;});_bd(90,function(){if(has("highcontrast")){_ba.add(win.body(),"dj_a11y");}});return has;});},"dijit/_WidgetBase":function(){define("dijit/_WidgetBase",["require","dojo/_base/array","dojo/aspect","dojo/_base/config","dojo/_base/connect","dojo/_base/declare","dojo/dom","dojo/dom-attr","dojo/dom-class","dojo/dom-construct","dojo/dom-geometry","dojo/dom-style","dojo/has","dojo/_base/kernel","dojo/_base/lang","dojo/on","dojo/ready","dojo/Stateful","dojo/topic","dojo/_base/window","./Destroyable","./registry"],function(_bf,_c0,_c1,_c2,_c3,_c4,dom,_c5,_c6,_c7,_c8,_c9,has,_ca,_cb,on,_cc,_cd,_ce,win,_cf,_d0){has.add("dijit-legacy-requires",!_ca.isAsync);if(has("dijit-legacy-requires")){_cc(0,function(){var _d1=["dijit/_base/manager"];_bf(_d1);});}var _d2={};function _d3(obj){var ret={};for(var _d4 in obj){ret[_d4.toLowerCase()]=true;}return ret;};function _d5(_d6){return function(val){_c5[val?"set":"remove"](this.domNode,_d6,val);this._set(_d6,val);};};return _c4("dijit._WidgetBase",[_cd,_cf],{id:"",_setIdAttr:"domNode",lang:"",_setLangAttr:_d5("lang"),dir:"",_setDirAttr:_d5("dir"),textDir:"","class":"",_setClassAttr:{node:"domNode",type:"class"},style:"",title:"",tooltip:"",baseClass:"",srcNodeRef:null,domNode:null,containerNode:null,ownerDocument:null,_setOwnerDocumentAttr:function(val){this._set("ownerDocument",val);},attributeMap:{},_blankGif:_c2.blankGif||_bf.toUrl("dojo/resources/blank.gif"),postscript:function(_d7,_d8){this.create(_d7,_d8);},create:function(_d9,_da){this.srcNodeRef=dom.byId(_da);this._connects=[];this._supportingWidgets=[];if(this.srcNodeRef&&(typeof this.srcNodeRef.id=="string")){this.id=this.srcNodeRef.id;}if(_d9){this.params=_d9;_cb.mixin(this,_d9);}this.postMixInProperties();if(!this.id){this.id=_d0.getUniqueId(this.declaredClass.replace(/\./g,"_"));if(this.params){delete this.params.id;}}this.ownerDocument=this.ownerDocument||(this.srcNodeRef?this.srcNodeRef.ownerDocument:win.doc);this.ownerDocumentBody=win.body(this.ownerDocument);_d0.add(this);this.buildRendering();var _db;if(this.domNode){this._applyAttributes();var _dc=this.srcNodeRef;if(_dc&&_dc.parentNode&&this.domNode!==_dc){_dc.parentNode.replaceChild(this.domNode,_dc);_db=true;}this.domNode.setAttribute("widgetId",this.id);}this.postCreate();if(_db){delete this.srcNodeRef;}this._created=true;},_applyAttributes:function(){var _dd=this.constructor,_de=_dd._setterAttrs;if(!_de){_de=(_dd._setterAttrs=[]);for(var _df in this.attributeMap){_de.push(_df);}var _e0=_dd.prototype;for(var _e1 in _e0){if(_e1 in this.attributeMap){continue;}var _e2="_set"+_e1.replace(/^[a-z]|-[a-zA-Z]/g,function(c){return c.charAt(c.length-1).toUpperCase();})+"Attr";if(_e2 in _e0){_de.push(_e1);}}}var _e3={};for(var key in this.params||{}){_e3[key]=this[key];}_c0.forEach(_de,function(_e4){if(_e4 in _e3){}else{if(this[_e4]){this.set(_e4,this[_e4]);}}},this);for(key in _e3){this.set(key,_e3[key]);}},postMixInProperties:function(){},buildRendering:function(){if(!this.domNode){this.domNode=this.srcNodeRef||this.ownerDocument.createElement("div");}if(this.baseClass){var _e5=this.baseClass.split(" ");if(!this.isLeftToRight()){_e5=_e5.concat(_c0.map(_e5,function(_e6){return _e6+"Rtl";}));}_c6.add(this.domNode,_e5);}},postCreate:function(){},startup:function(){if(this._started){return;}this._started=true;_c0.forEach(this.getChildren(),function(obj){if(!obj._started&&!obj._destroyed&&_cb.isFunction(obj.startup)){obj.startup();obj._started=true;}});},destroyRecursive:function(_e7){this._beingDestroyed=true;this.destroyDescendants(_e7);this.destroy(_e7);},destroy:function(_e8){this._beingDestroyed=true;this.uninitialize();function _e9(w){if(w.destroyRecursive){w.destroyRecursive(_e8);}else{if(w.destroy){w.destroy(_e8);}}};_c0.forEach(this._connects,_cb.hitch(this,"disconnect"));_c0.forEach(this._supportingWidgets,_e9);if(this.domNode){_c0.forEach(_d0.findWidgets(this.domNode,this.containerNode),_e9);}this.destroyRendering(_e8);_d0.remove(this.id);this._destroyed=true;},destroyRendering:function(_ea){if(this.bgIframe){this.bgIframe.destroy(_ea);delete this.bgIframe;}if(this.domNode){if(_ea){_c5.remove(this.domNode,"widgetId");}else{_c7.destroy(this.domNode);}delete this.domNode;}if(this.srcNodeRef){if(!_ea){_c7.destroy(this.srcNodeRef);}delete this.srcNodeRef;}},destroyDescendants:function(_eb){_c0.forEach(this.getChildren(),function(_ec){if(_ec.destroyRecursive){_ec.destroyRecursive(_eb);}});},uninitialize:function(){return false;},_setStyleAttr:function(_ed){var _ee=this.domNode;if(_cb.isObject(_ed)){_c9.set(_ee,_ed);}else{if(_ee.style.cssText){_ee.style.cssText+="; "+_ed;}else{_ee.style.cssText=_ed;}}this._set("style",_ed);},_attrToDom:function(_ef,_f0,_f1){_f1=arguments.length>=3?_f1:this.attributeMap[_ef];_c0.forEach(_cb.isArray(_f1)?_f1:[_f1],function(_f2){var _f3=this[_f2.node||_f2||"domNode"];var _f4=_f2.type||"attribute";switch(_f4){case "attribute":if(_cb.isFunction(_f0)){_f0=_cb.hitch(this,_f0);}var _f5=_f2.attribute?_f2.attribute:(/^on[A-Z][a-zA-Z]*$/.test(_ef)?_ef.toLowerCase():_ef);if(_f3.tagName){_c5.set(_f3,_f5,_f0);}else{_f3.set(_f5,_f0);}break;case "innerText":_f3.innerHTML="";_f3.appendChild(this.ownerDocument.createTextNode(_f0));break;case "innerHTML":_f3.innerHTML=_f0;break;case "class":_c6.replace(_f3,_f0,this[_ef]);break;}},this);},get:function(_f6){var _f7=this._getAttrNames(_f6);return this[_f7.g]?this[_f7.g]():this[_f6];},set:function(_f8,_f9){if(typeof _f8==="object"){for(var x in _f8){this.set(x,_f8[x]);}return this;}var _fa=this._getAttrNames(_f8),_fb=this[_fa.s];if(_cb.isFunction(_fb)){var _fc=_fb.apply(this,Array.prototype.slice.call(arguments,1));}else{var _fd=this.focusNode&&!_cb.isFunction(this.focusNode)?"focusNode":"domNode",tag=this[_fd].tagName,_fe=_d2[tag]||(_d2[tag]=_d3(this[_fd])),map=_f8 in this.attributeMap?this.attributeMap[_f8]:_fa.s in this?this[_fa.s]:((_fa.l in _fe&&typeof _f9!="function")||/^aria-|^data-|^role$/.test(_f8))?_fd:null;if(map!=null){this._attrToDom(_f8,_f9,map);}this._set(_f8,_f9);}return _fc||this;},_attrPairNames:{},_getAttrNames:function(_ff){var apn=this._attrPairNames;if(apn[_ff]){return apn[_ff];}var uc=_ff.replace(/^[a-z]|-[a-zA-Z]/g,function(c){return c.charAt(c.length-1).toUpperCase();});return (apn[_ff]={n:_ff+"Node",s:"_set"+uc+"Attr",g:"_get"+uc+"Attr",l:uc.toLowerCase()});},_set:function(name,_100){var _101=this[name];this[name]=_100;if(this._created&&_100!==_101){if(this._watchCallbacks){this._watchCallbacks(name,_101,_100);}this.emit("attrmodified-"+name,{detail:{prevValue:_101,newValue:_100}});}},emit:function(type,_102,_103){_102=_102||{};if(_102.bubbles===undefined){_102.bubbles=true;}if(_102.cancelable===undefined){_102.cancelable=true;}if(!_102.detail){_102.detail={};}_102.detail.widget=this;var ret,_104=this["on"+type];if(_104){ret=_104.apply(this,_103?_103:[_102]);}if(this._started&&!this._beingDestroyed){on.emit(this.domNode,type.toLowerCase(),_102);}return ret;},on:function(type,func){var _105=this._onMap(type);if(_105){return _c1.after(this,_105,func,true);}return this.own(on(this.domNode,type,func))[0];},_onMap:function(type){var ctor=this.constructor,map=ctor._onMap;if(!map){map=(ctor._onMap={});for(var attr in ctor.prototype){if(/^on/.test(attr)){map[attr.replace(/^on/,"").toLowerCase()]=attr;}}}return map[typeof type=="string"&&type.toLowerCase()];},toString:function(){return "[Widget "+this.declaredClass+", "+(this.id||"NO ID")+"]";},getChildren:function(){return this.containerNode?_d0.findWidgets(this.containerNode):[];},getParent:function(){return _d0.getEnclosingWidget(this.domNode.parentNode);},connect:function(obj,_106,_107){return this.own(_c3.connect(obj,_106,this,_107))[0];},disconnect:function(_108){_108.remove();},subscribe:function(t,_109){return this.own(_ce.subscribe(t,_cb.hitch(this,_109)))[0];},unsubscribe:function(_10a){_10a.remove();},isLeftToRight:function(){return this.dir?(this.dir=="ltr"):_c8.isBodyLtr(this.ownerDocument);},isFocusable:function(){return this.focus&&(_c9.get(this.domNode,"display")!="none");},placeAt:function(_10b,_10c){var _10d=!_10b.tagName&&_d0.byId(_10b);if(_10d&&_10d.addChild&&(!_10c||typeof _10c==="number")){_10d.addChild(this,_10c);}else{var ref=_10d?(_10d.containerNode&&!/after|before|replace/.test(_10c||"")?_10d.containerNode:_10d.domNode):dom.byId(_10b,this.ownerDocument);_c7.place(this.domNode,ref,_10c);if(!this._started&&(this.getParent()||{})._started){this.startup();}}return this;},getTextDir:function(text,_10e){return _10e;},applyTextDir:function(){},defer:function(fcn,_10f){var _110=setTimeout(_cb.hitch(this,function(){_110=null;if(!this._destroyed){_cb.hitch(this,fcn)();}}),_10f||0);return {remove:function(){if(_110){clearTimeout(_110);_110=null;}return null;}};}});});},"dojo/dnd/common":function(){define(["../_base/connect","../_base/kernel","../_base/lang","../dom"],function(_111,_112,lang,dom){var _113={};_113.getCopyKeyState=_111.isCopyKey;_113._uniqueId=0;_113.getUniqueId=function(){var id;do{id=_112._scopeName+"Unique"+(++_113._uniqueId);}while(dom.byId(id));return id;};_113._empty={};_113.isFormElement=function(e){var t=e.target;if(t.nodeType==3){t=t.parentNode;}return " button textarea input select option ".indexOf(" "+t.tagName.toLowerCase()+" ")>=0;};lang.mixin(lang.getObject("dojo.dnd",true),_113);return _113;});},"dojox/main":function(){define("dojox/main",["dojo/_base/kernel"],function(dojo){return dojo.dojox;});},"dojo/touch":function(){define(["./_base/kernel","./_base/lang","./aspect","./dom","./on","./has","./mouse","./ready","./_base/window"],function(dojo,lang,_114,dom,on,has,_115,_116,win){var _117=has("touch");var ios4=false;if(has("ios")){var ua=navigator.userAgent;var v=ua.match(/OS ([\d_]+)/)?RegExp.$1:"1";var os=parseFloat(v.replace(/_/,".").replace(/_/g,""));ios4=os<5;}var _118,_119;if(_117){_116(function(){_119=win.body();win.doc.addEventListener("touchstart",function(evt){var _11a=_119;_119=evt.target;on.emit(_11a,"dojotouchout",{target:_11a,relatedTarget:_119,bubbles:true});on.emit(_119,"dojotouchover",{target:_119,relatedTarget:_11a,bubbles:true});},true);on(win.doc,"touchmove",function(evt){var _11b=win.doc.elementFromPoint(evt.pageX-(ios4?0:win.global.pageXOffset),evt.pageY-(ios4?0:win.global.pageYOffset));if(_11b&&_119!==_11b){on.emit(_119,"dojotouchout",{target:_119,relatedTarget:_11b,bubbles:true});on.emit(_11b,"dojotouchover",{target:_11b,relatedTarget:_119,bubbles:true});_119=_11b;}});});_118=function(node,_11c){return on(win.doc,"touchmove",function(evt){if(node===win.doc||dom.isDescendant(_119,node)){_11c.call(this,lang.mixin({},evt,{target:_119,touches:evt.touches,preventDefault:function(){evt.preventDefault();},stopPropagation:function(){evt.stopPropagation();}}));}});};}function _11d(type){return function(node,_11e){return on(node,type,_11e);};};var _11f={press:_11d(_117?"touchstart":"mousedown"),move:_117?_118:_11d("mousemove"),release:_11d(_117?"touchend":"mouseup"),cancel:_117?_11d("touchcancel"):_115.leave,over:_11d(_117?"dojotouchover":"mouseover"),out:_11d(_117?"dojotouchout":"mouseout"),enter:_115._eventHandler(_117?"dojotouchover":"mouseover"),leave:_115._eventHandler(_117?"dojotouchout":"mouseout")};1&&(dojo.touch=_11f);return _11f;});},"dojox/grid/cells/_base":function(){define("dojox/grid/cells/_base",["dojo/_base/kernel","dojo/_base/declare","dojo/_base/lang","dojo/_base/event","dojo/_base/connect","dojo/_base/array","dojo/_base/sniff","dojo/dom","dojo/dom-attr","dojo/dom-construct","dijit/_Widget","../util"],function(dojo,_120,lang,_121,_122,_123,has,dom,_124,_125,_126,util){var _127=_120("dojox.grid._DeferredTextWidget",_126,{deferred:null,_destroyOnRemove:true,postCreate:function(){if(this.deferred){this.deferred.addBoth(lang.hitch(this,function(text){if(this.domNode){this.domNode.innerHTML=text;}}));}}});var _128=function(_129){try{util.fire(_129,"focus");util.fire(_129,"select");}catch(e){}};var _12a=function(){setTimeout(lang.hitch.apply(dojo,arguments),0);};var _12b=_120("dojox.grid.cells._Base",null,{styles:"",classes:"",editable:false,alwaysEditing:false,formatter:null,defaultValue:"...",value:null,hidden:false,noresize:false,draggable:true,_valueProp:"value",_formatPending:false,constructor:function(_12c){this._props=_12c||{};lang.mixin(this,_12c);if(this.draggable===undefined){this.draggable=true;}},_defaultFormat:function(_12d,_12e){var s=this.grid.formatterScope||this;var f=this.formatter;if(f&&s&&typeof f=="string"){f=this.formatter=s[f];}var v=(_12d!=this.defaultValue&&f)?f.apply(s,_12e):_12d;if(typeof v=="undefined"){return this.defaultValue;}if(v&&v.addBoth){v=new _127({deferred:v},_125.create("span",{innerHTML:this.defaultValue}));}if(v&&v.declaredClass&&v.startup){return "<div class='dojoxGridStubNode' linkWidget='"+v.id+"' cellIdx='"+this.index+"'>"+this.defaultValue+"</div>";}return v;},format:function(_12f,_130){var f,i=this.grid.edit.info,d=this.get?this.get(_12f,_130):(this.value||this.defaultValue);d=(d&&d.replace&&this.grid.escapeHTMLInData)?d.replace(/&/g,"&amp;").replace(/</g,"&lt;"):d;if(this.editable&&(this.alwaysEditing||(i.rowIndex==_12f&&i.cell==this))){return this.formatEditing(d,_12f);}else{return this._defaultFormat(d,[d,_12f,this]);}},formatEditing:function(_131,_132){},getNode:function(_133){return this.view.getCellNode(_133,this.index);},getHeaderNode:function(){return this.view.getHeaderCellNode(this.index);},getEditNode:function(_134){return (this.getNode(_134)||0).firstChild||0;},canResize:function(){var uw=this.unitWidth;return uw&&(uw!=="auto");},isFlex:function(){var uw=this.unitWidth;return uw&&lang.isString(uw)&&(uw=="auto"||uw.slice(-1)=="%");},applyEdit:function(_135,_136){if(this.getNode(_136)){this.grid.edit.applyCellEdit(_135,this,_136);}},cancelEdit:function(_137){this.grid.doCancelEdit(_137);},_onEditBlur:function(_138){if(this.grid.edit.isEditCell(_138,this.index)){this.grid.edit.apply();}},registerOnBlur:function(_139,_13a){if(this.commitOnBlur){_122.connect(_139,"onblur",function(e){setTimeout(lang.hitch(this,"_onEditBlur",_13a),250);});}},needFormatNode:function(_13b,_13c){this._formatPending=true;_12a(this,"_formatNode",_13b,_13c);},cancelFormatNode:function(){this._formatPending=false;},_formatNode:function(_13d,_13e){if(this._formatPending){this._formatPending=false;if(!has("ie")){dom.setSelectable(this.grid.domNode,true);}this.formatNode(this.getEditNode(_13e),_13d,_13e);}},formatNode:function(_13f,_140,_141){if(has("ie")){_12a(this,"focus",_141,_13f);}else{this.focus(_141,_13f);}},dispatchEvent:function(m,e){if(m in this){return this[m](e);}},getValue:function(_142){return this.getEditNode(_142)[this._valueProp];},setValue:function(_143,_144){var n=this.getEditNode(_143);if(n){n[this._valueProp]=_144;}},focus:function(_145,_146){_128(_146||this.getEditNode(_145));},save:function(_147){this.value=this.value||this.getValue(_147);},restore:function(_148){this.setValue(_148,this.value);},_finish:function(_149){dom.setSelectable(this.grid.domNode,false);this.cancelFormatNode();},apply:function(_14a){this.applyEdit(this.getValue(_14a),_14a);this._finish(_14a);},cancel:function(_14b){this.cancelEdit(_14b);this._finish(_14b);}});_12b.markupFactory=function(node,_14c){var _14d=lang.trim(_124.get(node,"formatter")||"");if(_14d){_14c.formatter=lang.getObject(_14d)||_14d;}var get=lang.trim(_124.get(node,"get")||"");if(get){_14c.get=lang.getObject(get);}var _14e=function(attr,cell,_14f){var _150=lang.trim(_124.get(node,attr)||"");if(_150){cell[_14f||attr]=!(_150.toLowerCase()=="false");}};_14e("sortDesc",_14c);_14e("editable",_14c);_14e("alwaysEditing",_14c);_14e("noresize",_14c);_14e("draggable",_14c);var _151=lang.trim(_124.get(node,"loadingText")||_124.get(node,"defaultValue")||"");if(_151){_14c.defaultValue=_151;}var _152=function(attr,cell,_153){var _154=lang.trim(_124.get(node,attr)||"")||undefined;if(_154){cell[_153||attr]=_154;}};_152("styles",_14c);_152("headerStyles",_14c);_152("cellStyles",_14c);_152("classes",_14c);_152("headerClasses",_14c);_152("cellClasses",_14c);};var Cell=_120("dojox.grid.cells.Cell",_12b,{constructor:function(){this.keyFilter=this.keyFilter;},keyFilter:null,formatEditing:function(_155,_156){this.needFormatNode(_155,_156);return "<input class=\"dojoxGridInput\" type=\"text\" value=\""+_155+"\">";},formatNode:function(_157,_158,_159){this.inherited(arguments);this.registerOnBlur(_157,_159);},doKey:function(e){if(this.keyFilter){var key=String.fromCharCode(e.charCode);if(key.search(this.keyFilter)==-1){_121.stop(e);}}},_finish:function(_15a){this.inherited(arguments);var n=this.getEditNode(_15a);try{util.fire(n,"blur");}catch(e){}}});Cell.markupFactory=function(node,_15b){_12b.markupFactory(node,_15b);var _15c=lang.trim(_124.get(node,"keyFilter")||"");if(_15c){_15b.keyFilter=new RegExp(_15c);}};var _15d=_120("dojox.grid.cells.RowIndex",Cell,{name:"Row",postscript:function(){this.editable=false;},get:function(_15e){return _15e+1;}});_15d.markupFactory=function(node,_15f){Cell.markupFactory(node,_15f);};var _160=_120("dojox.grid.cells.Select",Cell,{options:null,values:null,returnIndex:-1,constructor:function(_161){this.values=this.values||this.options;},formatEditing:function(_162,_163){this.needFormatNode(_162,_163);var h=["<select class=\"dojoxGridSelect\">"];for(var i=0,o,v;((o=this.options[i])!==undefined)&&((v=this.values[i])!==undefined);i++){v=v.replace?v.replace(/&/g,"&amp;").replace(/</g,"&lt;"):v;o=o.replace?o.replace(/&/g,"&amp;").replace(/</g,"&lt;"):o;h.push("<option",(_162==v?" selected":"")," value=\""+v+"\"",">",o,"</option>");}h.push("</select>");return h.join("");},_defaultFormat:function(_164,_165){var v=this.inherited(arguments);if(!this.formatter&&this.values&&this.options){var i=_123.indexOf(this.values,v);if(i>=0){v=this.options[i];}}return v;},getValue:function(_166){var n=this.getEditNode(_166);if(n){var i=n.selectedIndex,o=n.options[i];return this.returnIndex>-1?i:o.value||o.innerHTML;}}});_160.markupFactory=function(node,cell){Cell.markupFactory(node,cell);var _167=lang.trim(_124.get(node,"options")||"");if(_167){var o=_167.split(",");if(o[0]!=_167){cell.options=o;}}var _168=lang.trim(_124.get(node,"values")||"");if(_168){var v=_168.split(",");if(v[0]!=_168){cell.values=v;}}};var _169=_120("dojox.grid.cells.AlwaysEdit",Cell,{alwaysEditing:true,_formatNode:function(_16a,_16b){this.formatNode(this.getEditNode(_16b),_16a,_16b);},applyStaticValue:function(_16c){var e=this.grid.edit;e.applyCellEdit(this.getValue(_16c),this,_16c);e.start(this,_16c,true);}});_169.markupFactory=function(node,cell){Cell.markupFactory(node,cell);};var Bool=_120("dojox.grid.cells.Bool",_169,{_valueProp:"checked",formatEditing:function(_16d,_16e){return "<input class=\"dojoxGridInput\" type=\"checkbox\""+(_16d?" checked=\"checked\"":"")+" style=\"width: auto\" />";},doclick:function(e){if(e.target.tagName=="INPUT"){this.applyStaticValue(e.rowIndex);}}});Bool.markupFactory=function(node,cell){_169.markupFactory(node,cell);};return _12b;});},"url:dojox/grid/resources/View.html":"<div class=\"dojoxGridView\" role=\"presentation\">\n\t<div class=\"dojoxGridHeader\" dojoAttachPoint=\"headerNode\" role=\"presentation\">\n\t\t<div dojoAttachPoint=\"headerNodeContainer\" style=\"width:9000em\" role=\"presentation\">\n\t\t\t<div dojoAttachPoint=\"headerContentNode\" role=\"row\"></div>\n\t\t</div>\n\t</div>\n\t<input type=\"checkbox\" class=\"dojoxGridHiddenFocus\" dojoAttachPoint=\"hiddenFocusNode\" role=\"presentation\" />\n\t<input type=\"checkbox\" class=\"dojoxGridHiddenFocus\" role=\"presentation\" />\n\t<div class=\"dojoxGridScrollbox\" dojoAttachPoint=\"scrollboxNode\" role=\"presentation\">\n\t\t<div class=\"dojoxGridContent\" dojoAttachPoint=\"contentNode\" hidefocus=\"hidefocus\" role=\"presentation\"></div>\n\t</div>\n</div>\n","dojo/Stateful":function(){define(["./_base/declare","./_base/lang","./_base/array","dojo/when"],function(_16f,lang,_170,when){return _16f("dojo.Stateful",null,{_attrPairNames:{},_getAttrNames:function(name){var apn=this._attrPairNames;if(apn[name]){return apn[name];}return (apn[name]={s:"_"+name+"Setter",g:"_"+name+"Getter"});},postscript:function(_171){if(_171){this.set(_171);}},_get:function(name,_172){return typeof this[_172.g]==="function"?this[_172.g]():this[name];},get:function(name){return this._get(name,this._getAttrNames(name));},set:function(name,_173){if(typeof name==="object"){for(var x in name){if(name.hasOwnProperty(x)&&x!="_watchCallbacks"){this.set(x,name[x]);}}return this;}var _174=this._getAttrNames(name),_175=this._get(name,_174),_176=this[_174.s],_177;if(typeof _176==="function"){_177=_176.apply(this,Array.prototype.slice.call(arguments,1));}else{this[name]=_173;}if(this._watchCallbacks){var self=this;when(_177,function(){self._watchCallbacks(name,_175,_173);});}return this;},_changeAttrValue:function(name,_178){var _179=this.get(name);this[name]=_178;if(this._watchCallbacks){this._watchCallbacks(name,_179,_178);}return this;},watch:function(name,_17a){var _17b=this._watchCallbacks;if(!_17b){var self=this;_17b=this._watchCallbacks=function(name,_17c,_17d,_17e){var _17f=function(_180){if(_180){_180=_180.slice();for(var i=0,l=_180.length;i<l;i++){_180[i].call(self,name,_17c,_17d);}}};_17f(_17b["_"+name]);if(!_17e){_17f(_17b["*"]);}};}if(!_17a&&typeof name==="function"){_17a=name;name="*";}else{name="_"+name;}var _181=_17b[name];if(typeof _181!=="object"){_181=_17b[name]=[];}_181.push(_17a);var _182={};_182.unwatch=_182.remove=function(){var _183=_170.indexOf(_181,_17a);if(_183>-1){_181.splice(_183,1);}};return _182;}});});},"dijit/_CssStateMixin":function(){define("dijit/_CssStateMixin",["dojo/_base/array","dojo/_base/declare","dojo/dom","dojo/dom-class","dojo/has","dojo/_base/lang","dojo/on","dojo/ready","dojo/_base/window","./registry"],function(_184,_185,dom,_186,has,lang,on,_187,win,_188){var _189=_185("dijit._CssStateMixin",[],{cssStateNodes:{},hovering:false,active:false,_applyAttributes:function(){this.inherited(arguments);_184.forEach(["disabled","readOnly","checked","selected","focused","state","hovering","active","_opened"],function(attr){this.watch(attr,lang.hitch(this,"_setStateClass"));},this);for(var ap in this.cssStateNodes){this._trackMouseState(this[ap],this.cssStateNodes[ap]);}this._trackMouseState(this.domNode,this.baseClass);this._setStateClass();},_cssMouseEvent:function(_18a){if(!this.disabled){switch(_18a.type){case "mouseover":this._set("hovering",true);this._set("active",this._mouseDown);break;case "mouseout":this._set("hovering",false);this._set("active",false);break;case "mousedown":case "touchstart":this._set("active",true);break;case "mouseup":case "touchend":this._set("active",false);break;}}},_setStateClass:function(){var _18b=this.baseClass.split(" ");function _18c(_18d){_18b=_18b.concat(_184.map(_18b,function(c){return c+_18d;}),"dijit"+_18d);};if(!this.isLeftToRight()){_18c("Rtl");}var _18e=this.checked=="mixed"?"Mixed":(this.checked?"Checked":"");if(this.checked){_18c(_18e);}if(this.state){_18c(this.state);}if(this.selected){_18c("Selected");}if(this._opened){_18c("Opened");}if(this.disabled){_18c("Disabled");}else{if(this.readOnly){_18c("ReadOnly");}else{if(this.active){_18c("Active");}else{if(this.hovering){_18c("Hover");}}}}if(this.focused){_18c("Focused");}var tn=this.stateNode||this.domNode,_18f={};_184.forEach(tn.className.split(" "),function(c){_18f[c]=true;});if("_stateClasses" in this){_184.forEach(this._stateClasses,function(c){delete _18f[c];});}_184.forEach(_18b,function(c){_18f[c]=true;});var _190=[];for(var c in _18f){_190.push(c);}tn.className=_190.join(" ");this._stateClasses=_18b;},_subnodeCssMouseEvent:function(node,_191,evt){if(this.disabled||this.readOnly){return;}function _192(_193){_186.toggle(node,_191+"Hover",_193);};function _194(_195){_186.toggle(node,_191+"Active",_195);};function _196(_197){_186.toggle(node,_191+"Focused",_197);};switch(evt.type){case "mouseover":_192(true);break;case "mouseout":_192(false);_194(false);break;case "mousedown":case "touchstart":_194(true);break;case "mouseup":case "touchend":_194(false);break;case "focus":case "focusin":_196(true);break;case "blur":case "focusout":_196(false);break;}},_trackMouseState:function(node,_198){node._cssState=_198;}});_187(function(){function _199(evt){if(!dom.isDescendant(evt.relatedTarget,evt.target)){for(var node=evt.target;node&&node!=evt.relatedTarget;node=node.parentNode){if(node._cssState){var _19a=_188.getEnclosingWidget(node);if(_19a){if(node==_19a.domNode){_19a._cssMouseEvent(evt);}else{_19a._subnodeCssMouseEvent(node,node._cssState,evt);}}}}}};function _19b(evt){evt.target=evt.srcElement;_199(evt);};var body=win.body(),_19c=(has("touch")?[]:["mouseover","mouseout"]).concat(["mousedown","touchstart","mouseup","touchend"]);_184.forEach(_19c,function(type){if(body.addEventListener){body.addEventListener(type,_199,true);}else{body.attachEvent("on"+type,_19b);}});on(body,"focusin, focusout",function(evt){var node=evt.target;if(node._cssState&&!node.getAttribute("widgetId")){var _19d=_188.getEnclosingWidget(node);_19d._subnodeCssMouseEvent(node,node._cssState,evt);}});});return _189;});},"dojo/dnd/Moveable":function(){define(["../_base/array","../_base/declare","../_base/event","../_base/lang","../dom","../dom-class","../Evented","../on","../topic","../touch","./common","./Mover","../_base/window"],function(_19e,_19f,_1a0,lang,dom,_1a1,_1a2,on,_1a3,_1a4,dnd,_1a5,win){var _1a6=_19f("dojo.dnd.Moveable",[_1a2],{handle:"",delay:0,skip:false,constructor:function(node,_1a7){this.node=dom.byId(node);if(!_1a7){_1a7={};}this.handle=_1a7.handle?dom.byId(_1a7.handle):null;if(!this.handle){this.handle=this.node;}this.delay=_1a7.delay>0?_1a7.delay:0;this.skip=_1a7.skip;this.mover=_1a7.mover?_1a7.mover:_1a5;this.events=[on(this.handle,_1a4.press,lang.hitch(this,"onMouseDown")),on(this.handle,"dragstart",lang.hitch(this,"onSelectStart")),on(this.handle,"selectstart",lang.hitch(this,"onSelectStart"))];},markupFactory:function(_1a8,node,Ctor){return new Ctor(node,_1a8);},destroy:function(){_19e.forEach(this.events,function(_1a9){_1a9.remove();});this.events=this.node=this.handle=null;},onMouseDown:function(e){if(this.skip&&dnd.isFormElement(e)){return;}if(this.delay){this.events.push(on(this.handle,_1a4.move,lang.hitch(this,"onMouseMove")),on(this.handle,_1a4.release,lang.hitch(this,"onMouseUp")));this._lastX=e.pageX;this._lastY=e.pageY;}else{this.onDragDetected(e);}_1a0.stop(e);},onMouseMove:function(e){if(Math.abs(e.pageX-this._lastX)>this.delay||Math.abs(e.pageY-this._lastY)>this.delay){this.onMouseUp(e);this.onDragDetected(e);}_1a0.stop(e);},onMouseUp:function(e){for(var i=0;i<2;++i){this.events.pop().remove();}_1a0.stop(e);},onSelectStart:function(e){if(!this.skip||!dnd.isFormElement(e)){_1a0.stop(e);}},onDragDetected:function(e){new this.mover(this.node,e,this);},onMoveStart:function(_1aa){_1a3.publish("/dnd/move/start",_1aa);_1a1.add(win.body(),"dojoMove");_1a1.add(this.node,"dojoMoveItem");},onMoveStop:function(_1ab){_1a3.publish("/dnd/move/stop",_1ab);_1a1.remove(win.body(),"dojoMove");_1a1.remove(this.node,"dojoMoveItem");},onFirstMove:function(){},onMove:function(_1ac,_1ad){this.onMoving(_1ac,_1ad);var s=_1ac.node.style;s.left=_1ad.l+"px";s.top=_1ad.t+"px";this.onMoved(_1ac,_1ad);},onMoving:function(){},onMoved:function(){}});return _1a6;});},"dojox/grid/Selection":function(){define(["dojo/_base/declare","dojo/_base/array","dojo/_base/lang","dojo/dom-attr"],function(_1ae,_1af,lang,_1b0){return _1ae("dojox.grid.Selection",null,{constructor:function(_1b1){this.grid=_1b1;this.selected=[];this.setMode(_1b1.selectionMode);},mode:"extended",selected:null,updating:0,selectedIndex:-1,rangeStartIndex:-1,setMode:function(mode){if(this.selected.length){this.deselectAll();}if(mode!="extended"&&mode!="multiple"&&mode!="single"&&mode!="none"){this.mode="extended";}else{this.mode=mode;}},onCanSelect:function(_1b2){return this.grid.onCanSelect(_1b2);},onCanDeselect:function(_1b3){return this.grid.onCanDeselect(_1b3);},onSelected:function(_1b4){},onDeselected:function(_1b5){},onChanging:function(){},onChanged:function(){},isSelected:function(_1b6){if(this.mode=="none"){return false;}return this.selected[_1b6];},getFirstSelected:function(){if(!this.selected.length||this.mode=="none"){return -1;}for(var i=0,l=this.selected.length;i<l;i++){if(this.selected[i]){return i;}}return -1;},getNextSelected:function(_1b7){if(this.mode=="none"){return -1;}for(var i=_1b7+1,l=this.selected.length;i<l;i++){if(this.selected[i]){return i;}}return -1;},getSelected:function(){var _1b8=[];for(var i=0,l=this.selected.length;i<l;i++){if(this.selected[i]){_1b8.push(i);}}return _1b8;},getSelectedCount:function(){var c=0;for(var i=0;i<this.selected.length;i++){if(this.selected[i]){c++;}}return c;},_beginUpdate:function(){if(this.updating===0){this.onChanging();}this.updating++;},_endUpdate:function(){this.updating--;if(this.updating===0){this.onChanged();}},select:function(_1b9){if(this.mode=="none"){return;}if(this.mode!="multiple"){this.deselectAll(_1b9);this.addToSelection(_1b9);}else{this.toggleSelect(_1b9);}},addToSelection:function(_1ba){if(this.mode=="none"){return;}if(lang.isArray(_1ba)){_1af.forEach(_1ba,this.addToSelection,this);return;}_1ba=Number(_1ba);if(this.selected[_1ba]){this.selectedIndex=_1ba;}else{if(this.onCanSelect(_1ba)!==false){this.selectedIndex=_1ba;var _1bb=this.grid.getRowNode(_1ba);if(_1bb){_1b0.set(_1bb,"aria-selected","true");}this._beginUpdate();this.selected[_1ba]=true;this.onSelected(_1ba);this._endUpdate();}}},deselect:function(_1bc){if(this.mode=="none"){return;}if(lang.isArray(_1bc)){_1af.forEach(_1bc,this.deselect,this);return;}_1bc=Number(_1bc);if(this.selectedIndex==_1bc){this.selectedIndex=-1;}if(this.selected[_1bc]){if(this.onCanDeselect(_1bc)===false){return;}var _1bd=this.grid.getRowNode(_1bc);if(_1bd){_1b0.set(_1bd,"aria-selected","false");}this._beginUpdate();delete this.selected[_1bc];this.onDeselected(_1bc);this._endUpdate();}},setSelected:function(_1be,_1bf){this[(_1bf?"addToSelection":"deselect")](_1be);},toggleSelect:function(_1c0){if(lang.isArray(_1c0)){_1af.forEach(_1c0,this.toggleSelect,this);return;}this.setSelected(_1c0,!this.selected[_1c0]);},_range:function(_1c1,inTo,func){var s=(_1c1>=0?_1c1:inTo),e=inTo;if(s>e){e=s;s=inTo;}for(var i=s;i<=e;i++){func(i);}},selectRange:function(_1c2,inTo){this._range(_1c2,inTo,lang.hitch(this,"addToSelection"));},deselectRange:function(_1c3,inTo){this._range(_1c3,inTo,lang.hitch(this,"deselect"));},insert:function(_1c4){this.selected.splice(_1c4,0,false);if(this.selectedIndex>=_1c4){this.selectedIndex++;}},remove:function(_1c5){this.selected.splice(_1c5,1);if(this.selectedIndex>=_1c5){this.selectedIndex--;}},deselectAll:function(_1c6){for(var i in this.selected){if((i!=_1c6)&&(this.selected[i]===true)){this.deselect(i);}}},clickSelect:function(_1c7,_1c8,_1c9){if(this.mode=="none"){return;}this._beginUpdate();if(this.mode!="extended"){this.select(_1c7);}else{if(!_1c9||this.rangeStartIndex<0){this.rangeStartIndex=_1c7;}if(!_1c8){this.deselectAll(_1c7);}if(_1c9){this.selectRange(this.rangeStartIndex,_1c7);}else{if(_1c8){this.toggleSelect(_1c7);}else{this.addToSelection(_1c7);}}}this._endUpdate();},clickSelectEvent:function(e){this.clickSelect(e.rowIndex,dojo.isCopyKey(e),e.shiftKey);},clear:function(){this._beginUpdate();this.deselectAll();this._endUpdate();}});});},"dojox/grid/_Grid":function(){require({cache:{"url:dojox/grid/resources/_Grid.html":"<div hidefocus=\"hidefocus\" role=\"grid\" dojoAttachEvent=\"onmouseout:_mouseOut\">\n\t<div class=\"dojoxGridMasterHeader\" dojoAttachPoint=\"viewsHeaderNode\" role=\"presentation\"></div>\n\t<div class=\"dojoxGridMasterView\" dojoAttachPoint=\"viewsNode\" role=\"presentation\"></div>\n\t<div class=\"dojoxGridMasterMessages\" style=\"display: none;\" dojoAttachPoint=\"messagesNode\"></div>\n\t<span dojoAttachPoint=\"lastFocusNode\" tabindex=\"0\"></span>\n</div>\n"}});define("dojox/grid/_Grid",["dojo/_base/kernel","../main","dojo/_base/declare","./_Events","./_Scroller","./_Layout","./_View","./_ViewManager","./_RowManager","./_FocusManager","./_EditManager","./Selection","./_RowSelector","./util","dijit/_Widget","dijit/_TemplatedMixin","dijit/CheckedMenuItem","dojo/text!./resources/_Grid.html","dojo/string","dojo/_base/array","dojo/_base/lang","dojo/_base/sniff","dojox/html/metrics","dojo/_base/html","dojo/query","dojo/dnd/common","dojo/i18n!dijit/nls/loading"],function(dojo,_1ca,_1cb,_1cc,_1cd,_1ce,_1cf,_1d0,_1d1,_1d2,_1d3,_1d4,_1d5,util,_1d6,_1d7,_1d8,_1d9,_1da,_1db,lang,has,_1dc,html,_1dd){if(!dojo.isCopyKey){dojo.isCopyKey=dojo.dnd.getCopyKeyState;}var _1de=_1cb("dojox.grid._Grid",[_1d6,_1d7,_1cc],{templateString:_1d9,classTag:"dojoxGrid",rowCount:5,keepRows:75,rowsPerPage:25,autoWidth:false,initialWidth:"",autoHeight:"",rowHeight:0,autoRender:true,defaultHeight:"15em",height:"",structure:null,elasticView:-1,singleClickEdit:false,selectionMode:"extended",rowSelector:"",columnReordering:false,headerMenu:null,placeholderLabel:"GridColumns",selectable:false,_click:null,loadingMessage:"<span class='dojoxGridLoading'>${loadingState}</span>",errorMessage:"<span class='dojoxGridError'>${errorState}</span>",noDataMessage:"",escapeHTMLInData:true,formatterScope:null,editable:false,summary:"",_setSummaryAttr:"domNode",sortInfo:0,_placeholders:null,_layoutClass:_1ce,buildRendering:function(){this.inherited(arguments);if(!this.domNode.getAttribute("tabIndex")){this.domNode.tabIndex="0";}this.createScroller();this.createLayout();this.createViews();this.createManagers();this.createSelection();this.connect(this.selection,"onSelected","onSelected");this.connect(this.selection,"onDeselected","onDeselected");this.connect(this.selection,"onChanged","onSelectionChanged");_1dc.initOnFontResize();this.connect(_1dc,"onFontResize","textSizeChanged");util.funnelEvents(this.domNode,this,"doKeyEvent",util.keyEvents);if(this.selectionMode!="none"){this.domNode.setAttribute("aria-multiselectable",this.selectionMode=="single"?"false":"true");}html.addClass(this.domNode,this.classTag);if(!this.isLeftToRight()){html.addClass(this.domNode,this.classTag+"Rtl");}if(this.rowHeight>0){html.addClass(this.viewsNode,this.classTag+"FixedRowHeight");}},postMixInProperties:function(){this.inherited(arguments);var _1df=dojo.i18n.getLocalization("dijit","loading",this.lang);this.loadingMessage=_1da.substitute(this.loadingMessage,_1df);this.errorMessage=_1da.substitute(this.errorMessage,_1df);if(this.srcNodeRef&&this.srcNodeRef.style.height){this.height=this.srcNodeRef.style.height;}this._setAutoHeightAttr(this.autoHeight,true);this.lastScrollTop=this.scrollTop=0;},postCreate:function(){this._placeholders=[];this._setHeaderMenuAttr(this.headerMenu);this._setStructureAttr(this.structure);this._click=[];this.inherited(arguments);if(this.domNode&&this.autoWidth&&this.initialWidth){this.domNode.style.width=this.initialWidth;}if(this.domNode&&!this.editable){html.attr(this.domNode,"aria-readonly","true");}},destroy:function(){this.domNode.onReveal=null;this.domNode.onSizeChange=null;delete this._click;if(this.scroller){this.scroller.destroy();delete this.scroller;}this.edit.destroy();delete this.edit;this.views.destroyViews();if(this.focus){this.focus.destroy();delete this.focus;}if(this.headerMenu&&this._placeholders.length){_1db.forEach(this._placeholders,function(p){p.unReplace(true);});this.headerMenu.unBindDomNode(this.viewsHeaderNode);}this.inherited(arguments);},_setAutoHeightAttr:function(ah,_1e0){if(typeof ah=="string"){if(!ah||ah=="false"){ah=false;}else{if(ah=="true"){ah=true;}else{ah=window.parseInt(ah,10);}}}if(typeof ah=="number"){if(isNaN(ah)){ah=false;}if(ah<0){ah=true;}else{if(ah===0){ah=false;}}}this.autoHeight=ah;if(typeof ah=="boolean"){this._autoHeight=ah;}else{if(typeof ah=="number"){this._autoHeight=(ah>=this.get("rowCount"));}else{this._autoHeight=false;}}if(this._started&&!_1e0){this.render();}},_getRowCountAttr:function(){return this.updating&&this.invalidated&&this.invalidated.rowCount!=undefined?this.invalidated.rowCount:this.rowCount;},textSizeChanged:function(){this.render();},sizeChange:function(){this.update();},createManagers:function(){this.rows=new _1d1(this);this.focus=new _1d2(this);this.edit=new _1d3(this);},createSelection:function(){this.selection=new _1d4(this);},createScroller:function(){this.scroller=new _1cd();this.scroller.grid=this;this.scroller.renderRow=lang.hitch(this,"renderRow");this.scroller.removeRow=lang.hitch(this,"rowRemoved");},createLayout:function(){this.layout=new this._layoutClass(this);this.connect(this.layout,"moveColumn","onMoveColumn");},onMoveColumn:function(){this.update();},onResizeColumn:function(_1e1){},createViews:function(){this.views=new _1d0(this);this.views.createView=lang.hitch(this,"createView");},createView:function(_1e2,idx){var c=lang.getObject(_1e2);var view=new c({grid:this,index:idx});this.viewsNode.appendChild(view.domNode);this.viewsHeaderNode.appendChild(view.headerNode);this.views.addView(view);html.attr(this.domNode,"align",this.isLeftToRight()?"left":"right");return view;},buildViews:function(){for(var i=0,vs;(vs=this.layout.structure[i]);i++){this.createView(vs.type||_1ca._scopeName+".grid._View",i).setStructure(vs);}this.scroller.setContentNodes(this.views.getContentNodes());},_setStructureAttr:function(_1e3){var s=_1e3;if(s&&lang.isString(s)){dojo.deprecated("dojox.grid._Grid.set('structure', 'objVar')","use dojox.grid._Grid.set('structure', objVar) instead","2.0");s=lang.getObject(s);}this.structure=s;if(!s){if(this.layout.structure){s=this.layout.structure;}else{return;}}this.views.destroyViews();this.focus.focusView=null;if(s!==this.layout.structure){this.layout.setStructure(s);}this._structureChanged();},setStructure:function(_1e4){dojo.deprecated("dojox.grid._Grid.setStructure(obj)","use dojox.grid._Grid.set('structure', obj) instead.","2.0");this._setStructureAttr(_1e4);},getColumnTogglingItems:function(){var _1e5,_1e6=[];_1e5=_1db.map(this.layout.cells,function(cell){if(!cell.menuItems){cell.menuItems=[];}var self=this;var item=new _1d8({label:cell.name,checked:!cell.hidden,_gridCell:cell,onChange:function(_1e7){if(self.layout.setColumnVisibility(this._gridCell.index,_1e7)){var _1e8=this._gridCell.menuItems;if(_1e8.length>1){_1db.forEach(_1e8,function(item){if(item!==this){item.setAttribute("checked",_1e7);}},this);}_1e7=_1db.filter(self.layout.cells,function(c){if(c.menuItems.length>1){_1db.forEach(c.menuItems,"item.set('disabled', false);");}else{c.menuItems[0].set("disabled",false);}return !c.hidden;});if(_1e7.length==1){_1db.forEach(_1e7[0].menuItems,"item.set('disabled', true);");}}},destroy:function(){var _1e9=_1db.indexOf(this._gridCell.menuItems,this);this._gridCell.menuItems.splice(_1e9,1);delete this._gridCell;_1d8.prototype.destroy.apply(this,arguments);}});cell.menuItems.push(item);if(!cell.hidden){_1e6.push(item);}return item;},this);if(_1e6.length==1){_1e6[0].set("disabled",true);}return _1e5;},_setHeaderMenuAttr:function(menu){if(this._placeholders&&this._placeholders.length){_1db.forEach(this._placeholders,function(p){p.unReplace(true);});this._placeholders=[];}if(this.headerMenu){this.headerMenu.unBindDomNode(this.viewsHeaderNode);}this.headerMenu=menu;if(!menu){return;}this.headerMenu.bindDomNode(this.viewsHeaderNode);if(this.headerMenu.getPlaceholders){this._placeholders=this.headerMenu.getPlaceholders(this.placeholderLabel);}},setHeaderMenu:function(menu){dojo.deprecated("dojox.grid._Grid.setHeaderMenu(obj)","use dojox.grid._Grid.set('headerMenu', obj) instead.","2.0");this._setHeaderMenuAttr(menu);},setupHeaderMenu:function(){if(this._placeholders&&this._placeholders.length){_1db.forEach(this._placeholders,function(p){if(p._replaced){p.unReplace(true);}p.replace(this.getColumnTogglingItems());},this);}},_fetch:function(_1ea){this.setScrollTop(0);},getItem:function(_1eb){return null;},showMessage:function(_1ec){if(_1ec){this.messagesNode.innerHTML=_1ec;this.messagesNode.style.display="";}else{this.messagesNode.innerHTML="";this.messagesNode.style.display="none";}},_structureChanged:function(){this.buildViews();if(this.autoRender&&this._started){this.render();}},hasLayout:function(){return this.layout.cells.length;},resize:function(_1ed,_1ee){this._pendingChangeSize=_1ed;this._pendingResultSize=_1ee;this.sizeChange();},_getPadBorder:function(){this._padBorder=this._padBorder||html._getPadBorderExtents(this.domNode);return this._padBorder;},_getHeaderHeight:function(){var vns=this.viewsHeaderNode.style,t=vns.display=="none"?0:this.views.measureHeader();vns.height=t+"px";this.views.normalizeHeaderNodeHeight();return t;},_resize:function(_1ef,_1f0){_1ef=_1ef||this._pendingChangeSize;_1f0=_1f0||this._pendingResultSize;delete this._pendingChangeSize;delete this._pendingResultSize;if(!this.domNode){return;}var pn=this.domNode.parentNode;if(!pn||pn.nodeType!=1||!this.hasLayout()||pn.style.visibility=="hidden"||pn.style.display=="none"){return;}var _1f1=this._getPadBorder();var hh=undefined;var h;if(this._autoHeight){this.domNode.style.height="auto";}else{if(typeof this.autoHeight=="number"){h=hh=this._getHeaderHeight();h+=(this.scroller.averageRowHeight*this.autoHeight);this.domNode.style.height=h+"px";}else{if(this.domNode.clientHeight<=_1f1.h){if(pn==document.body){this.domNode.style.height=this.defaultHeight;}else{if(this.height){this.domNode.style.height=this.height;}else{this.fitTo="parent";}}}}}if(_1f0){_1ef=_1f0;}if(!this._autoHeight&&_1ef){html.marginBox(this.domNode,_1ef);this.height=this.domNode.style.height;delete this.fitTo;}else{if(this.fitTo=="parent"){h=this._parentContentBoxHeight=(this._parentContentBoxHeight>0?this._parentContentBoxHeight:html._getContentBox(pn).h);this.domNode.style.height=Math.max(0,h)+"px";}}var _1f2=_1db.some(this.views.views,function(v){return v.flexCells;});if(!this._autoHeight&&(h||html._getContentBox(this.domNode).h)===0){this.viewsHeaderNode.style.display="none";}else{this.viewsHeaderNode.style.display="block";if(!_1f2&&hh===undefined){hh=this._getHeaderHeight();}}if(_1f2){hh=undefined;}this.adaptWidth();this.adaptHeight(hh);this.postresize();},adaptWidth:function(){var _1f3=(!this.initialWidth&&this.autoWidth);var w=_1f3?0:this.domNode.clientWidth||(this.domNode.offsetWidth-this._getPadBorder().w),vw=this.views.arrange(1,w);this.views.onEach("adaptWidth");if(_1f3){this.domNode.style.width=vw+"px";}},adaptHeight:function(_1f4){var t=_1f4===undefined?this._getHeaderHeight():_1f4;var h=(this._autoHeight?-1:Math.max(this.domNode.clientHeight-t,0)||0);this.views.onEach("setSize",[0,h]);this.views.onEach("adaptHeight");if(!this._autoHeight){var _1f5=0,_1f6=0;var _1f7=_1db.filter(this.views.views,function(v){var has=v.hasHScrollbar();if(has){_1f5++;}else{_1f6++;}return (!has);});if(_1f5>0&&_1f6>0){_1db.forEach(_1f7,function(v){v.adaptHeight(true);});}}if(this.autoHeight===true||h!=-1||(typeof this.autoHeight=="number"&&this.autoHeight>=this.get("rowCount"))){this.scroller.windowHeight=h;}else{this.scroller.windowHeight=Math.max(this.domNode.clientHeight-t,0);}},startup:function(){if(this._started){return;}this.inherited(arguments);if(this.autoRender){this.render();}},render:function(){if(!this.domNode){return;}if(!this._started){return;}if(!this.hasLayout()){this.scroller.init(0,this.keepRows,this.rowsPerPage);return;}this.update=this.defaultUpdate;this._render();},_render:function(){this.scroller.init(this.get("rowCount"),this.keepRows,this.rowsPerPage);this.prerender();this.setScrollTop(0);this.postrender();},prerender:function(){this.keepRows=this._autoHeight?0:this.keepRows;this.scroller.setKeepInfo(this.keepRows);this.views.render();this._resize();},postrender:function(){this.postresize();this.focus.initFocusView();html.setSelectable(this.domNode,this.selectable);},postresize:function(){if(this._autoHeight){var size=Math.max(this.views.measureContent())+"px";this.viewsNode.style.height=size;}},renderRow:function(_1f8,_1f9){this.views.renderRow(_1f8,_1f9,this._skipRowRenormalize);},rowRemoved:function(_1fa){this.views.rowRemoved(_1fa);},invalidated:null,updating:false,beginUpdate:function(){this.invalidated=[];this.updating=true;},endUpdate:function(){this.updating=false;var i=this.invalidated,r;if(i.all){this.update();}else{if(i.rowCount!=undefined){this.updateRowCount(i.rowCount);}else{for(r in i){this.updateRow(Number(r));}}}this.invalidated=[];},defaultUpdate:function(){if(!this.domNode){return;}if(this.updating){this.invalidated.all=true;return;}this.lastScrollTop=this.scrollTop;this.prerender();this.scroller.invalidateNodes();this.setScrollTop(this.lastScrollTop);this.postrender();},update:function(){this.render();},updateRow:function(_1fb){_1fb=Number(_1fb);if(this.updating){this.invalidated[_1fb]=true;}else{this.views.updateRow(_1fb);this.scroller.rowHeightChanged(_1fb);}},updateRows:function(_1fc,_1fd){_1fc=Number(_1fc);_1fd=Number(_1fd);var i;if(this.updating){for(i=0;i<_1fd;i++){this.invalidated[i+_1fc]=true;}}else{for(i=0;i<_1fd;i++){this.views.updateRow(i+_1fc,this._skipRowRenormalize);}this.scroller.rowHeightChanged(_1fc);}},updateRowCount:function(_1fe){if(this.updating){this.invalidated.rowCount=_1fe;}else{this.rowCount=_1fe;this._setAutoHeightAttr(this.autoHeight,true);if(this.layout.cells.length){this.scroller.updateRowCount(_1fe);}this._resize();if(this.layout.cells.length){this.setScrollTop(this.scrollTop);}}},updateRowStyles:function(_1ff){this.views.updateRowStyles(_1ff);},getRowNode:function(_200){if(this.focus.focusView&&!(this.focus.focusView instanceof _1d5)){return this.focus.focusView.rowNodes[_200];}else{for(var i=0,_201;(_201=this.views.views[i]);i++){if(!(_201 instanceof _1d5)){return _201.rowNodes[_200];}}}return null;},rowHeightChanged:function(_202){this.views.renormalizeRow(_202);this.scroller.rowHeightChanged(_202);},fastScroll:true,delayScroll:false,scrollRedrawThreshold:(has("ie")?100:50),scrollTo:function(_203){if(!this.fastScroll){this.setScrollTop(_203);return;}var _204=Math.abs(this.lastScrollTop-_203);this.lastScrollTop=_203;if(_204>this.scrollRedrawThreshold||this.delayScroll){this.delayScroll=true;this.scrollTop=_203;this.views.setScrollTop(_203);if(this._pendingScroll){window.clearTimeout(this._pendingScroll);}var _205=this;this._pendingScroll=window.setTimeout(function(){delete _205._pendingScroll;_205.finishScrollJob();},200);}else{this.setScrollTop(_203);}},finishScrollJob:function(){this.delayScroll=false;this.setScrollTop(this.scrollTop);},setScrollTop:function(_206){this.scroller.scroll(this.views.setScrollTop(_206));},scrollToRow:function(_207){this.setScrollTop(this.scroller.findScrollTop(_207)+1);},styleRowNode:function(_208,_209){if(_209){this.rows.styleRowNode(_208,_209);}},_mouseOut:function(e){this.rows.setOverRow(-2);},getCell:function(_20a){return this.layout.cells[_20a];},setCellWidth:function(_20b,_20c){this.getCell(_20b).unitWidth=_20c;},getCellName:function(_20d){return "Cell "+_20d.index;},canSort:function(_20e){},sort:function(){},getSortAsc:function(_20f){_20f=_20f==undefined?this.sortInfo:_20f;return Boolean(_20f>0);},getSortIndex:function(_210){_210=_210==undefined?this.sortInfo:_210;return Math.abs(_210)-1;},setSortIndex:function(_211,_212){var si=_211+1;if(_212!=undefined){si*=(_212?1:-1);}else{if(this.getSortIndex()==_211){si=-this.sortInfo;}}this.setSortInfo(si);},setSortInfo:function(_213){if(this.canSort(_213)){this.sortInfo=_213;this.sort();this.update();}},doKeyEvent:function(e){e.dispatch="do"+e.type;this.onKeyEvent(e);},_dispatch:function(m,e){if(m in this){return this[m](e);}return false;},dispatchKeyEvent:function(e){this._dispatch(e.dispatch,e);},dispatchContentEvent:function(e){this.edit.dispatchEvent(e)||e.sourceView.dispatchContentEvent(e)||this._dispatch(e.dispatch,e);},dispatchHeaderEvent:function(e){e.sourceView.dispatchHeaderEvent(e)||this._dispatch("doheader"+e.type,e);},dokeydown:function(e){this.onKeyDown(e);},doclick:function(e){if(e.cellNode){this.onCellClick(e);}else{this.onRowClick(e);}},dodblclick:function(e){if(e.cellNode){this.onCellDblClick(e);}else{this.onRowDblClick(e);}},docontextmenu:function(e){if(e.cellNode){this.onCellContextMenu(e);}else{this.onRowContextMenu(e);}},doheaderclick:function(e){if(e.cellNode){this.onHeaderCellClick(e);}else{this.onHeaderClick(e);}},doheaderdblclick:function(e){if(e.cellNode){this.onHeaderCellDblClick(e);}else{this.onHeaderDblClick(e);}},doheadercontextmenu:function(e){if(e.cellNode){this.onHeaderCellContextMenu(e);}else{this.onHeaderContextMenu(e);}},doStartEdit:function(_214,_215){this.onStartEdit(_214,_215);},doApplyCellEdit:function(_216,_217,_218){this.onApplyCellEdit(_216,_217,_218);},doCancelEdit:function(_219){this.onCancelEdit(_219);},doApplyEdit:function(_21a){this.onApplyEdit(_21a);},addRow:function(){this.updateRowCount(this.get("rowCount")+1);},removeSelectedRows:function(){if(this.allItemsSelected){this.updateRowCount(0);}else{this.updateRowCount(Math.max(0,this.get("rowCount")-this.selection.getSelected().length));}this.selection.clear();}});_1de.markupFactory=function(_21b,node,ctor,_21c){var _21d=function(n){var w=html.attr(n,"width")||"auto";if((w!="auto")&&(w.slice(-2)!="em")&&(w.slice(-1)!="%")){w=parseInt(w,10)+"px";}return w;};if(!_21b.structure&&node.nodeName.toLowerCase()=="table"){_21b.structure=_1dd("> colgroup",node).map(function(cg){var sv=html.attr(cg,"span");var v={noscroll:(html.attr(cg,"noscroll")=="true")?true:false,__span:(!!sv?parseInt(sv,10):1),cells:[]};if(html.hasAttr(cg,"width")){v.width=_21d(cg);}return v;});if(!_21b.structure.length){_21b.structure.push({__span:Infinity,cells:[]});}_1dd("thead > tr",node).forEach(function(tr,_21e){var _21f=0;var _220=0;var _221;var _222=null;_1dd("> th",tr).map(function(th){if(!_222){_221=0;_222=_21b.structure[0];}else{if(_21f>=(_221+_222.__span)){_220++;_221+=_222.__span;var _223=_222;_222=_21b.structure[_220];}}var cell={name:lang.trim(html.attr(th,"name")||th.innerHTML),colSpan:parseInt(html.attr(th,"colspan")||1,10),type:lang.trim(html.attr(th,"cellType")||""),id:lang.trim(html.attr(th,"id")||"")};_21f+=cell.colSpan;var _224=html.attr(th,"rowspan");if(_224){cell.rowSpan=_224;}if(html.hasAttr(th,"width")){cell.width=_21d(th);}if(html.hasAttr(th,"relWidth")){cell.relWidth=window.parseInt(html.attr(th,"relWidth"),10);}if(html.hasAttr(th,"hidden")){cell.hidden=(html.attr(th,"hidden")=="true"||html.attr(th,"hidden")===true);}if(_21c){_21c(th,cell);}cell.type=cell.type?lang.getObject(cell.type):_1ca.grid.cells.Cell;if(cell.type&&cell.type.markupFactory){cell.type.markupFactory(th,cell);}if(!_222.cells[_21e]){_222.cells[_21e]=[];}_222.cells[_21e].push(cell);});});}return new ctor(_21b,node);};return _1de;});},"dojo/dnd/Selector":function(){define(["../_base/array","../_base/declare","../_base/event","../_base/kernel","../_base/lang","../dom","../dom-construct","../mouse","../_base/NodeList","../on","../touch","./common","./Container"],function(_225,_226,_227,_228,lang,dom,_229,_22a,_22b,on,_22c,dnd,_22d){var _22e=_226("dojo.dnd.Selector",_22d,{constructor:function(node,_22f){if(!_22f){_22f={};}this.singular=_22f.singular;this.autoSync=_22f.autoSync;this.selection={};this.anchor=null;this.simpleSelection=false;this.events.push(on(this.node,_22c.press,lang.hitch(this,"onMouseDown")),on(this.node,_22c.release,lang.hitch(this,"onMouseUp")));},singular:false,getSelectedNodes:function(){var t=new _22b();var e=dnd._empty;for(var i in this.selection){if(i in e){continue;}t.push(dom.byId(i));}return t;},selectNone:function(){return this._removeSelection()._removeAnchor();},selectAll:function(){this.forInItems(function(data,id){this._addItemClass(dom.byId(id),"Selected");this.selection[id]=1;},this);return this._removeAnchor();},deleteSelectedNodes:function(){var e=dnd._empty;for(var i in this.selection){if(i in e){continue;}var n=dom.byId(i);this.delItem(i);_229.destroy(n);}this.anchor=null;this.selection={};return this;},forInSelectedItems:function(f,o){o=o||_228.global;var s=this.selection,e=dnd._empty;for(var i in s){if(i in e){continue;}f.call(o,this.getItem(i),i,this);}},sync:function(){_22e.superclass.sync.call(this);if(this.anchor){if(!this.getItem(this.anchor.id)){this.anchor=null;}}var t=[],e=dnd._empty;for(var i in this.selection){if(i in e){continue;}if(!this.getItem(i)){t.push(i);}}_225.forEach(t,function(i){delete this.selection[i];},this);return this;},insertNodes:function(_230,data,_231,_232){var _233=this._normalizedCreator;this._normalizedCreator=function(item,hint){var t=_233.call(this,item,hint);if(_230){if(!this.anchor){this.anchor=t.node;this._removeItemClass(t.node,"Selected");this._addItemClass(this.anchor,"Anchor");}else{if(this.anchor!=t.node){this._removeItemClass(t.node,"Anchor");this._addItemClass(t.node,"Selected");}}this.selection[t.node.id]=1;}else{this._removeItemClass(t.node,"Selected");this._removeItemClass(t.node,"Anchor");}return t;};_22e.superclass.insertNodes.call(this,data,_231,_232);this._normalizedCreator=_233;return this;},destroy:function(){_22e.superclass.destroy.call(this);this.selection=this.anchor=null;},onMouseDown:function(e){if(this.autoSync){this.sync();}if(!this.current){return;}if(!this.singular&&!dnd.getCopyKeyState(e)&&!e.shiftKey&&(this.current.id in this.selection)){this.simpleSelection=true;if(_22a.isLeft(e)){_227.stop(e);}return;}if(!this.singular&&e.shiftKey){if(!dnd.getCopyKeyState(e)){this._removeSelection();}var c=this.getAllNodes();if(c.length){if(!this.anchor){this.anchor=c[0];this._addItemClass(this.anchor,"Anchor");}this.selection[this.anchor.id]=1;if(this.anchor!=this.current){var i=0,node;for(;i<c.length;++i){node=c[i];if(node==this.anchor||node==this.current){break;}}for(++i;i<c.length;++i){node=c[i];if(node==this.anchor||node==this.current){break;}this._addItemClass(node,"Selected");this.selection[node.id]=1;}this._addItemClass(this.current,"Selected");this.selection[this.current.id]=1;}}}else{if(this.singular){if(this.anchor==this.current){if(dnd.getCopyKeyState(e)){this.selectNone();}}else{this.selectNone();this.anchor=this.current;this._addItemClass(this.anchor,"Anchor");this.selection[this.current.id]=1;}}else{if(dnd.getCopyKeyState(e)){if(this.anchor==this.current){delete this.selection[this.anchor.id];this._removeAnchor();}else{if(this.current.id in this.selection){this._removeItemClass(this.current,"Selected");delete this.selection[this.current.id];}else{if(this.anchor){this._removeItemClass(this.anchor,"Anchor");this._addItemClass(this.anchor,"Selected");}this.anchor=this.current;this._addItemClass(this.current,"Anchor");this.selection[this.current.id]=1;}}}else{if(!(this.current.id in this.selection)){this.selectNone();this.anchor=this.current;this._addItemClass(this.current,"Anchor");this.selection[this.current.id]=1;}}}}_227.stop(e);},onMouseUp:function(){if(!this.simpleSelection){return;}this.simpleSelection=false;this.selectNone();if(this.current){this.anchor=this.current;this._addItemClass(this.anchor,"Anchor");this.selection[this.current.id]=1;}},onMouseMove:function(){this.simpleSelection=false;},onOverEvent:function(){this.onmousemoveEvent=on(this.node,_22c.move,lang.hitch(this,"onMouseMove"));},onOutEvent:function(){if(this.onmousemoveEvent){this.onmousemoveEvent.remove();delete this.onmousemoveEvent;}},_removeSelection:function(){var e=dnd._empty;for(var i in this.selection){if(i in e){continue;}var node=dom.byId(i);if(node){this._removeItemClass(node,"Selected");}}this.selection={};return this;},_removeAnchor:function(){if(this.anchor){this._removeItemClass(this.anchor,"Anchor");this.anchor=null;}return this;}});return _22e;});},"url:dijit/templates/MenuItem.html":"<tr class=\"dijitReset dijitMenuItem\" data-dojo-attach-point=\"focusNode\" role=\"menuitem\" tabIndex=\"-1\">\n\t<td class=\"dijitReset dijitMenuItemIconCell\" role=\"presentation\">\n\t\t<img src=\"${_blankGif}\" alt=\"\" class=\"dijitIcon dijitMenuItemIcon\" data-dojo-attach-point=\"iconNode\"/>\n\t</td>\n\t<td class=\"dijitReset dijitMenuItemLabel\" colspan=\"2\" data-dojo-attach-point=\"containerNode\"></td>\n\t<td class=\"dijitReset dijitMenuItemAccelKey\" style=\"display: none\" data-dojo-attach-point=\"accelKeyNode\"></td>\n\t<td class=\"dijitReset dijitMenuArrowCell\" role=\"presentation\">\n\t\t<div data-dojo-attach-point=\"arrowWrapper\" style=\"visibility: hidden\">\n\t\t\t<img src=\"${_blankGif}\" alt=\"\" class=\"dijitMenuExpand\"/>\n\t\t\t<span class=\"dijitMenuExpandA11y\">+</span>\n\t\t</div>\n\t</td>\n</tr>\n","dijit/registry":function(){define("dijit/registry",["dojo/_base/array","dojo/sniff","dojo/_base/unload","dojo/_base/window","./main"],function(_234,has,_235,win,_236){var _237={},hash={};var _238={length:0,add:function(_239){if(hash[_239.id]){throw new Error("Tried to register widget with id=="+_239.id+" but that id is already registered");}hash[_239.id]=_239;this.length++;},remove:function(id){if(hash[id]){delete hash[id];this.length--;}},byId:function(id){return typeof id=="string"?hash[id]:id;},byNode:function(node){return hash[node.getAttribute("widgetId")];},toArray:function(){var ar=[];for(var id in hash){ar.push(hash[id]);}return ar;},getUniqueId:function(_23a){var id;do{id=_23a+"_"+(_23a in _237?++_237[_23a]:_237[_23a]=0);}while(hash[id]);return _236._scopeName=="dijit"?id:_236._scopeName+"_"+id;},findWidgets:function(root,_23b){var _23c=[];function _23d(root){for(var node=root.firstChild;node;node=node.nextSibling){if(node.nodeType==1){var _23e=node.getAttribute("widgetId");if(_23e){var _23f=hash[_23e];if(_23f){_23c.push(_23f);}}else{if(node!==_23b){_23d(node);}}}}};_23d(root);return _23c;},_destroyAll:function(){_236._curFocus=null;_236._prevFocus=null;_236._activeStack=[];_234.forEach(_238.findWidgets(win.body()),function(_240){if(!_240._destroyed){if(_240.destroyRecursive){_240.destroyRecursive();}else{if(_240.destroy){_240.destroy();}}}});},getEnclosingWidget:function(node){while(node){var id=node.getAttribute&&node.getAttribute("widgetId");if(id){return hash[id];}node=node.parentNode;}return null;},_hash:hash};_236.registry=_238;return _238;});},"dojo/uacss":function(){define(["./dom-geometry","./_base/lang","./ready","./sniff","./_base/window"],function(_241,lang,_242,has,_243){var html=_243.doc.documentElement,ie=has("ie"),_244=has("opera"),maj=Math.floor,ff=has("ff"),_245=_241.boxModel.replace(/-/,""),_246={"dj_ie":ie,"dj_ie6":maj(ie)==6,"dj_ie7":maj(ie)==7,"dj_ie8":maj(ie)==8,"dj_ie9":maj(ie)==9,"dj_quirks":has("quirks"),"dj_iequirks":ie&&has("quirks"),"dj_opera":_244,"dj_khtml":has("khtml"),"dj_webkit":has("webkit"),"dj_safari":has("safari"),"dj_chrome":has("chrome"),"dj_gecko":has("mozilla"),"dj_ff3":maj(ff)==3};_246["dj_"+_245]=true;var _247="";for(var clz in _246){if(_246[clz]){_247+=clz+" ";}}html.className=lang.trim(html.className+" "+_247);_242(90,function(){if(!_241.isBodyLtr()){var _248="dj_rtl dijitRtl "+_247.replace(/ /g,"-rtl ");html.className=lang.trim(html.className+" "+_248+"dj_rtl dijitRtl "+_247.replace(/ /g,"-rtl "));}});return has;});},"dojo/window":function(){define(["./_base/lang","./sniff","./_base/window","./dom","./dom-geometry","./dom-style"],function(lang,has,_249,dom,geom,_24a){var _24b={getBox:function(doc){doc=doc||_249.doc;var _24c=(doc.compatMode=="BackCompat")?_249.body(doc):doc.documentElement,_24d=geom.docScroll(doc),w,h;if(has("touch")){var _24e=_24b.get(doc);w=_24e.innerWidth||_24c.clientWidth;h=_24e.innerHeight||_24c.clientHeight;}else{w=_24c.clientWidth;h=_24c.clientHeight;}return {l:_24d.x,t:_24d.y,w:w,h:h};},get:function(doc){if(has("ie")&&_24b!==document.parentWindow){doc.parentWindow.execScript("document._parentWindow = window;","Javascript");var win=doc._parentWindow;doc._parentWindow=null;return win;}return doc.parentWindow||doc.defaultView;},scrollIntoView:function(node,pos){try{node=dom.byId(node);var doc=node.ownerDocument||_249.doc,body=_249.body(doc),html=doc.documentElement||body.parentNode,isIE=has("ie"),isWK=has("webkit");if((!(has("mozilla")||isIE||isWK||has("opera"))||node==body||node==html)&&(typeof node.scrollIntoView!="undefined")){node.scrollIntoView(false);return;}var _24f=doc.compatMode=="BackCompat",_250=(isIE>=9&&"frameElement" in node.ownerDocument.parentWindow)?((html.clientHeight>0&&html.clientWidth>0&&(body.clientHeight==0||body.clientWidth==0||body.clientHeight>html.clientHeight||body.clientWidth>html.clientWidth))?html:body):(_24f?body:html),_251=isWK?body:_250,_252=_250.clientWidth,_253=_250.clientHeight,rtl=!geom.isBodyLtr(doc),_254=pos||geom.position(node),el=node.parentNode,_255=function(el){return ((isIE<=6||(isIE&&_24f))?false:(_24a.get(el,"position").toLowerCase()=="fixed"));};if(_255(node)){return;}while(el){if(el==body){el=_251;}var _256=geom.position(el),_257=_255(el);if(el==_251){_256.w=_252;_256.h=_253;if(_251==html&&isIE&&rtl){_256.x+=_251.offsetWidth-_256.w;}if(_256.x<0||!isIE){_256.x=0;}if(_256.y<0||!isIE){_256.y=0;}}else{var pb=geom.getPadBorderExtents(el);_256.w-=pb.w;_256.h-=pb.h;_256.x+=pb.l;_256.y+=pb.t;var _258=el.clientWidth,_259=_256.w-_258;if(_258>0&&_259>0){_256.w=_258;_256.x+=(rtl&&(isIE||el.clientLeft>pb.l))?_259:0;}_258=el.clientHeight;_259=_256.h-_258;if(_258>0&&_259>0){_256.h=_258;}}if(_257){if(_256.y<0){_256.h+=_256.y;_256.y=0;}if(_256.x<0){_256.w+=_256.x;_256.x=0;}if(_256.y+_256.h>_253){_256.h=_253-_256.y;}if(_256.x+_256.w>_252){_256.w=_252-_256.x;}}var l=_254.x-_256.x,t=_254.y-Math.max(_256.y,0),r=l+_254.w-_256.w,bot=t+_254.h-_256.h;if(r*l>0){var s=Math[l<0?"max":"min"](l,r);if(rtl&&((isIE==8&&!_24f)||isIE>=9)){s=-s;}_254.x+=el.scrollLeft;el.scrollLeft+=s;_254.x-=el.scrollLeft;}if(bot*t>0){_254.y+=el.scrollTop;el.scrollTop+=Math[t<0?"max":"min"](t,bot);_254.y-=el.scrollTop;}el=(el!=_251)&&!_257&&el.parentNode;}}catch(error){console.error("scrollIntoView: "+error);node.scrollIntoView(false);}}};1&&lang.setObject("dojo.window",_24b);return _24b;});},"dojo/dnd/Mover":function(){define(["../_base/array","../_base/declare","../_base/event","../_base/lang","../sniff","../_base/window","../dom","../dom-geometry","../dom-style","../Evented","../on","../touch","./common","./autoscroll"],function(_25a,_25b,_25c,lang,has,win,dom,_25d,_25e,_25f,on,_260,dnd,_261){return _25b("dojo.dnd.Mover",[_25f],{constructor:function(node,e,host){this.node=dom.byId(node);this.marginBox={l:e.pageX,t:e.pageY};this.mouseButton=e.button;var h=(this.host=host),d=node.ownerDocument;this.events=[on(d,_260.move,lang.hitch(this,"onFirstMove")),on(d,_260.move,lang.hitch(this,"onMouseMove")),on(d,_260.release,lang.hitch(this,"onMouseUp")),on(d,"dragstart",_25c.stop),on(d.body,"selectstart",_25c.stop)];_261.autoScrollStart(d);if(h&&h.onMoveStart){h.onMoveStart(this);}},onMouseMove:function(e){_261.autoScroll(e);var m=this.marginBox;this.host.onMove(this,{l:m.l+e.pageX,t:m.t+e.pageY},e);_25c.stop(e);},onMouseUp:function(e){if(has("webkit")&&has("mac")&&this.mouseButton==2?e.button==0:this.mouseButton==e.button){this.destroy();}_25c.stop(e);},onFirstMove:function(e){var s=this.node.style,l,t,h=this.host;switch(s.position){case "relative":case "absolute":l=Math.round(parseFloat(s.left))||0;t=Math.round(parseFloat(s.top))||0;break;default:s.position="absolute";var m=_25d.getMarginBox(this.node);var b=win.doc.body;var bs=_25e.getComputedStyle(b);var bm=_25d.getMarginBox(b,bs);var bc=_25d.getContentBox(b,bs);l=m.l-(bc.l-bm.l);t=m.t-(bc.t-bm.t);break;}this.marginBox.l=l-this.marginBox.l;this.marginBox.t=t-this.marginBox.t;if(h&&h.onFirstMove){h.onFirstMove(this,e);}this.events.shift().remove();},destroy:function(){_25a.forEach(this.events,function(_262){_262.remove();});var h=this.host;if(h&&h.onMoveStop){h.onMoveStop(this);}this.events=this.node=this.host=null;}});});},"url:dojox/grid/resources/_Grid.html":"<div hidefocus=\"hidefocus\" role=\"grid\" dojoAttachEvent=\"onmouseout:_mouseOut\">\n\t<div class=\"dojoxGridMasterHeader\" dojoAttachPoint=\"viewsHeaderNode\" role=\"presentation\"></div>\n\t<div class=\"dojoxGridMasterView\" dojoAttachPoint=\"viewsNode\" role=\"presentation\"></div>\n\t<div class=\"dojoxGridMasterMessages\" style=\"display: none;\" dojoAttachPoint=\"messagesNode\"></div>\n\t<span dojoAttachPoint=\"lastFocusNode\" tabindex=\"0\"></span>\n</div>\n","dojox/grid/_EditManager":function(){define(["dojo/_base/lang","dojo/_base/array","dojo/_base/declare","dojo/_base/connect","dojo/_base/sniff","./util"],function(lang,_263,_264,_265,has,util){return _264("dojox.grid._EditManager",null,{constructor:function(_266){this.grid=_266;if(has("ie")){this.connections=[_265.connect(document.body,"onfocus",lang.hitch(this,"_boomerangFocus"))];}else{this.connections=[_265.connect(this.grid,"onBlur",this,"apply")];}},info:{},destroy:function(){_263.forEach(this.connections,_265.disconnect);},cellFocus:function(_267,_268){if(this.grid.singleClickEdit||this.isEditRow(_268)){this.setEditCell(_267,_268);}else{this.apply();}if(this.isEditing()||(_267&&_267.editable&&_267.alwaysEditing)){this._focusEditor(_267,_268);}},rowClick:function(e){if(this.isEditing()&&!this.isEditRow(e.rowIndex)){this.apply();}},styleRow:function(_269){if(_269.index==this.info.rowIndex){_269.customClasses+=" dojoxGridRowEditing";}},dispatchEvent:function(e){var c=e.cell,ed=(c&&c["editable"])?c:0;return ed&&ed.dispatchEvent(e.dispatch,e);},isEditing:function(){return this.info.rowIndex!==undefined;},isEditCell:function(_26a,_26b){return (this.info.rowIndex===_26a)&&(this.info.cell.index==_26b);},isEditRow:function(_26c){return this.info.rowIndex===_26c;},setEditCell:function(_26d,_26e){if(!this.isEditCell(_26e,_26d.index)&&this.grid.canEdit&&this.grid.canEdit(_26d,_26e)){this.start(_26d,_26e,this.isEditRow(_26e)||_26d.editable);}},_focusEditor:function(_26f,_270){util.fire(_26f,"focus",[_270]);},focusEditor:function(){if(this.isEditing()){this._focusEditor(this.info.cell,this.info.rowIndex);}},_boomerangWindow:500,_shouldCatchBoomerang:function(){return this._catchBoomerang>new Date().getTime();},_boomerangFocus:function(){if(this._shouldCatchBoomerang()){this.grid.focus.focusGrid();this.focusEditor();this._catchBoomerang=0;}},_doCatchBoomerang:function(){if(has("ie")){this._catchBoomerang=new Date().getTime()+this._boomerangWindow;}},start:function(_271,_272,_273){if(!this._isValidInput()){return;}this.grid.beginUpdate();this.editorApply();if(this.isEditing()&&!this.isEditRow(_272)){this.applyRowEdit();this.grid.updateRow(_272);}if(_273){this.info={cell:_271,rowIndex:_272};this.grid.doStartEdit(_271,_272);this.grid.updateRow(_272);}else{this.info={};}this.grid.endUpdate();this.grid.focus.focusGrid();this._focusEditor(_271,_272);this._doCatchBoomerang();},_editorDo:function(_274){var c=this.info.cell;if(c&&c.editable){c[_274](this.info.rowIndex);}},editorApply:function(){this._editorDo("apply");},editorCancel:function(){this._editorDo("cancel");},applyCellEdit:function(_275,_276,_277){if(this.grid.canEdit(_276,_277)){this.grid.doApplyCellEdit(_275,_277,_276.field);}},applyRowEdit:function(){this.grid.doApplyEdit(this.info.rowIndex,this.info.cell.field);},apply:function(){if(this.isEditing()&&this._isValidInput()){this.grid.beginUpdate();this.editorApply();this.applyRowEdit();this.info={};this.grid.endUpdate();this.grid.focus.focusGrid();this._doCatchBoomerang();}},cancel:function(){if(this.isEditing()){this.grid.beginUpdate();this.editorCancel();this.info={};this.grid.endUpdate();this.grid.focus.focusGrid();this._doCatchBoomerang();}},save:function(_278,_279){var c=this.info.cell;if(this.isEditRow(_278)&&(!_279||c.view==_279)&&c.editable){c.save(c,this.info.rowIndex);}},restore:function(_27a,_27b){var c=this.info.cell;if(this.isEditRow(_27b)&&c.view==_27a&&c.editable){c.restore(this.info.rowIndex);}},_isValidInput:function(){var w=(this.info.cell||{}).widget;if(!w||!w.isValid){return true;}w.focused=true;return w.isValid(true);}});});},"dojox/grid/DataSelection":function(){define("dojox/grid/DataSelection",["dojo/_base/declare","./_SelectionPreserver","./Selection"],function(_27c,_27d,_27e){return _27c("dojox.grid.DataSelection",_27e,{constructor:function(grid){if(grid.keepSelection){this.preserver=new _27d(this);}},destroy:function(){if(this.preserver){this.preserver.destroy();}},getFirstSelected:function(){var idx=_27e.prototype.getFirstSelected.call(this);if(idx==-1){return null;}return this.grid.getItem(idx);},getNextSelected:function(_27f){var _280=this.grid.getItemIndex(_27f);var idx=_27e.prototype.getNextSelected.call(this,_280);if(idx==-1){return null;}return this.grid.getItem(idx);},getSelected:function(){var _281=[];for(var i=0,l=this.selected.length;i<l;i++){if(this.selected[i]){_281.push(this.grid.getItem(i));}}return _281;},addToSelection:function(_282){if(this.mode=="none"){return;}var idx=null;if(typeof _282=="number"||typeof _282=="string"){idx=_282;}else{idx=this.grid.getItemIndex(_282);}_27e.prototype.addToSelection.call(this,idx);},deselect:function(_283){if(this.mode=="none"){return;}var idx=null;if(typeof _283=="number"||typeof _283=="string"){idx=_283;}else{idx=this.grid.getItemIndex(_283);}_27e.prototype.deselect.call(this,idx);},deselectAll:function(_284){var idx=null;if(_284||typeof _284=="number"){if(typeof _284=="number"||typeof _284=="string"){idx=_284;}else{idx=this.grid.getItemIndex(_284);}_27e.prototype.deselectAll.call(this,idx);}else{this.inherited(arguments);}}});});},"dojox/grid/_ViewManager":function(){define(["dojo/_base/declare","dojo/_base/sniff","dojo/dom-class"],function(_285,has,_286){return _285("dojox.grid._ViewManager",null,{constructor:function(_287){this.grid=_287;},defaultWidth:200,views:[],resize:function(){this.onEach("resize");},render:function(){this.onEach("render");},addView:function(_288){_288.idx=this.views.length;this.views.push(_288);},destroyViews:function(){for(var i=0,v;v=this.views[i];i++){v.destroy();}this.views=[];},getContentNodes:function(){var _289=[];for(var i=0,v;v=this.views[i];i++){_289.push(v.contentNode);}return _289;},forEach:function(_28a){for(var i=0,v;v=this.views[i];i++){_28a(v,i);}},onEach:function(_28b,_28c){_28c=_28c||[];for(var i=0,v;v=this.views[i];i++){if(_28b in v){v[_28b].apply(v,_28c);}}},normalizeHeaderNodeHeight:function(){var _28d=[];for(var i=0,v;(v=this.views[i]);i++){if(v.headerContentNode.firstChild){_28d.push(v.headerContentNode);}}this.normalizeRowNodeHeights(_28d);},normalizeRowNodeHeights:function(_28e){var h=0;var _28f=[];if(this.grid.rowHeight){h=this.grid.rowHeight;}else{if(_28e.length<=1){return;}for(var i=0,n;(n=_28e[i]);i++){if(!_286.contains(n,"dojoxGridNonNormalizedCell")){_28f[i]=n.firstChild.offsetHeight;h=Math.max(h,_28f[i]);}}h=(h>=0?h:0);if((has("mozilla")||has("ie")>8)&&h){h++;}}for(i=0;(n=_28e[i]);i++){if(_28f[i]!=h){n.firstChild.style.height=h+"px";}}},resetHeaderNodeHeight:function(){for(var i=0,v,n;(v=this.views[i]);i++){n=v.headerContentNode.firstChild;if(n){n.style.height="";}}},renormalizeRow:function(_290){var _291=[];for(var i=0,v,n;(v=this.views[i])&&(n=v.getRowNode(_290));i++){n.firstChild.style.height="";_291.push(n);}this.normalizeRowNodeHeights(_291);},getViewWidth:function(_292){return this.views[_292].getWidth()||this.defaultWidth;},measureHeader:function(){this.resetHeaderNodeHeight();this.forEach(function(_293){_293.headerContentNode.style.height="";});var h=0;this.forEach(function(_294){h=Math.max(_294.headerNode.offsetHeight,h);});return h;},measureContent:function(){var h=0;this.forEach(function(_295){h=Math.max(_295.domNode.offsetHeight,h);});return h;},findClient:function(_296){var c=this.grid.elasticView||-1;if(c<0){for(var i=1,v;(v=this.views[i]);i++){if(v.viewWidth){for(i=1;(v=this.views[i]);i++){if(!v.viewWidth){c=i;break;}}break;}}}if(c<0){c=Math.floor(this.views.length/2);}return c;},arrange:function(l,w){var i,v,vw,len=this.views.length,self=this;var c=(w<=0?len:this.findClient());var _297=function(v,l){var ds=v.domNode.style;var hs=v.headerNode.style;if(!self.grid.isLeftToRight()){ds.right=l+"px";if(has("ff")<4){hs.right=l+v.getScrollbarWidth()+"px";}else{hs.right=l+"px";}if(!has("webkit")){hs.width=parseInt(hs.width,10)-v.getScrollbarWidth()+"px";}}else{ds.left=l+"px";hs.left=l+"px";}ds.top=0+"px";hs.top=0;};for(i=0;(v=this.views[i])&&(i<c);i++){vw=this.getViewWidth(i);v.setSize(vw,0);_297(v,l);if(v.headerContentNode&&v.headerContentNode.firstChild){vw=v.getColumnsWidth()+v.getScrollbarWidth();}else{vw=v.domNode.offsetWidth;}l+=vw;}i++;var r=w;for(var j=len-1;(v=this.views[j])&&(i<=j);j--){vw=this.getViewWidth(j);v.setSize(vw,0);vw=v.domNode.offsetWidth;r-=vw;_297(v,r);}if(c<len){v=this.views[c];vw=Math.max(1,r-l);v.setSize(vw+"px",0);_297(v,l);}return l;},renderRow:function(_298,_299,_29a){var _29b=[];for(var i=0,v,n,_29c;(v=this.views[i])&&(n=_299[i]);i++){_29c=v.renderRow(_298);n.appendChild(_29c);_29b.push(_29c);}if(!_29a){this.normalizeRowNodeHeights(_29b);}},rowRemoved:function(_29d){this.onEach("rowRemoved",[_29d]);},updateRow:function(_29e,_29f){for(var i=0,v;v=this.views[i];i++){v.updateRow(_29e);}if(!_29f){this.renormalizeRow(_29e);}},updateRowStyles:function(_2a0){this.onEach("updateRowStyles",[_2a0]);},setScrollTop:function(_2a1){var top=_2a1;for(var i=0,v;v=this.views[i];i++){top=v.setScrollTop(_2a1);if(has("ie")&&v.headerNode&&v.scrollboxNode){v.headerNode.scrollLeft=v.scrollboxNode.scrollLeft;}}return top;},getFirstScrollingView:function(){for(var i=0,v;(v=this.views[i]);i++){if(v.hasHScrollbar()||v.hasVScrollbar()){return v;}}return null;}});});},"dijit/_OnDijitClickMixin":function(){define("dijit/_OnDijitClickMixin",["dojo/on","dojo/_base/array","dojo/keys","dojo/_base/declare","dojo/has","dojo/_base/unload","dojo/_base/window","./a11yclick"],function(on,_2a2,keys,_2a3,has,_2a4,win,_2a5){var ret=_2a3("dijit._OnDijitClickMixin",null,{connect:function(obj,_2a6,_2a7){return this.inherited(arguments,[obj,_2a6=="ondijitclick"?_2a5:_2a6,_2a7]);}});ret.a11yclick=_2a5;return ret;});},"dojox/grid/util":function(){define("dojox/grid/util",["../main","dojo/_base/lang","dojo/dom"],function(_2a8,lang,dom){var dgu=lang.getObject("grid.util",true,_2a8);dgu.na="...";dgu.rowIndexTag="gridRowIndex";dgu.gridViewTag="gridView";dgu.fire=function(ob,ev,args){var fn=ob&&ev&&ob[ev];return fn&&(args?fn.apply(ob,args):ob[ev]());};dgu.setStyleHeightPx=function(_2a9,_2aa){if(_2aa>=0){var s=_2a9.style;var v=_2aa+"px";if(_2a9&&s["height"]!=v){s["height"]=v;}}};dgu.mouseEvents=["mouseover","mouseout","mousedown","mouseup","click","dblclick","contextmenu"];dgu.keyEvents=["keyup","keydown","keypress"];dgu.funnelEvents=function(_2ab,_2ac,_2ad,_2ae){var evts=(_2ae?_2ae:dgu.mouseEvents.concat(dgu.keyEvents));for(var i=0,l=evts.length;i<l;i++){_2ac.connect(_2ab,"on"+evts[i],_2ad);}};dgu.removeNode=function(_2af){_2af=dom.byId(_2af);_2af&&_2af.parentNode&&_2af.parentNode.removeChild(_2af);return _2af;};dgu.arrayCompare=function(inA,inB){for(var i=0,l=inA.length;i<l;i++){if(inA[i]!=inB[i]){return false;}}return (inA.length==inB.length);};dgu.arrayInsert=function(_2b0,_2b1,_2b2){if(_2b0.length<=_2b1){_2b0[_2b1]=_2b2;}else{_2b0.splice(_2b1,0,_2b2);}};dgu.arrayRemove=function(_2b3,_2b4){_2b3.splice(_2b4,1);};dgu.arraySwap=function(_2b5,inI,inJ){var _2b6=_2b5[inI];_2b5[inI]=_2b5[inJ];_2b5[inJ]=_2b6;};return dgu;});},"dijit/a11yclick":function(){define("dijit/a11yclick",["dojo/on","dojo/_base/array","dojo/keys","dojo/_base/declare","dojo/has","dojo/_base/unload","dojo/_base/window"],function(on,_2b7,keys,_2b8,has,_2b9,win){var _2ba=null;if(has("dom-addeventlistener")){win.doc.addEventListener("keydown",function(evt){_2ba=evt.target;},true);}else{(function(){var _2bb=function(evt){_2ba=evt.srcElement;};win.doc.attachEvent("onkeydown",_2bb);_2b9.addOnWindowUnload(function(){win.doc.detachEvent("onkeydown",_2bb);});})();}function _2bc(e){return (e.keyCode===keys.ENTER||e.keyCode===keys.SPACE)&&!e.ctrlKey&&!e.shiftKey&&!e.altKey&&!e.metaKey;};return function(node,_2bd){if(/input|button/i.test(node.nodeName)){return on(node,"click",_2bd);}else{var _2be=[on(node,"keydown",function(e){if(_2bc(e)){_2ba=e.target;e.preventDefault();}}),on(node,"keyup",function(e){if(_2bc(e)&&e.target==_2ba){_2ba=null;on.emit(e.target,"click",{cancelable:true,bubbles:true});}}),on(node,"click",function(e){_2bd.call(this,e);})];if(has("touch")){var _2bf;_2be.push(on(node,"touchend",function(e){var _2c0=e.target;_2bf=setTimeout(function(){_2bf=null;on.emit(_2c0,"click",{cancelable:true,bubbles:true});},600);}),on(node,"click",function(e){if(_2bf){clearTimeout(_2bf);}}));}return {remove:function(){_2b7.forEach(_2be,function(h){h.remove();});if(_2bf){clearTimeout(_2bf);_2bf=null;}}};}};return ret;});},"dijit/hccss":function(){define("dijit/hccss",["dojo/dom-class","dojo/hccss","dojo/ready","dojo/_base/window"],function(_2c1,has,_2c2,win){_2c2(90,function(){if(has("highcontrast")){_2c1.add(win.body(),"dijit_a11y");}});return has;});},"dojox/grid/cells":function(){define("dojox/grid/cells",["../main","./cells/_base"],function(_2c3){return _2c3.grid.cells;});},"dijit/_TemplatedMixin":function(){define("dijit/_TemplatedMixin",["dojo/_base/lang","dojo/touch","./_WidgetBase","dojo/string","dojo/cache","dojo/_base/array","dojo/_base/declare","dojo/dom-construct","dojo/sniff","dojo/_base/unload"],function(lang,_2c4,_2c5,_2c6,_2c7,_2c8,_2c9,_2ca,has,_2cb){var _2cc=_2c9("dijit._TemplatedMixin",null,{templateString:null,templatePath:null,_skipNodeCache:false,_earlyTemplatedStartup:false,constructor:function(){this._attachPoints=[];this._attachEvents=[];},_stringRepl:function(tmpl){var _2cd=this.declaredClass,_2ce=this;return _2c6.substitute(tmpl,this,function(_2cf,key){if(key.charAt(0)=="!"){_2cf=lang.getObject(key.substr(1),false,_2ce);}if(typeof _2cf=="undefined"){throw new Error(_2cd+" template:"+key);}if(_2cf==null){return "";}return key.charAt(0)=="!"?_2cf:_2cf.toString().replace(/"/g,"&quot;");},this);},buildRendering:function(){if(!this.templateString){this.templateString=_2c7(this.templatePath,{sanitize:true});}var _2d0=_2cc.getCachedTemplate(this.templateString,this._skipNodeCache,this.ownerDocument);var node;if(lang.isString(_2d0)){node=_2ca.toDom(this._stringRepl(_2d0),this.ownerDocument);if(node.nodeType!=1){throw new Error("Invalid template: "+_2d0);}}else{node=_2d0.cloneNode(true);}this.domNode=node;this.inherited(arguments);this._attachTemplateNodes(node,function(n,p){return n.getAttribute(p);});this._beforeFillContent();this._fillContent(this.srcNodeRef);},_beforeFillContent:function(){},_fillContent:function(_2d1){var dest=this.containerNode;if(_2d1&&dest){while(_2d1.hasChildNodes()){dest.appendChild(_2d1.firstChild);}}},_attachTemplateNodes:function(_2d2,_2d3){var _2d4=lang.isArray(_2d2)?_2d2:(_2d2.all||_2d2.getElementsByTagName("*"));var x=lang.isArray(_2d2)?0:-1;for(;x<0||_2d4[x];x++){var _2d5=(x==-1)?_2d2:_2d4[x];if(this.widgetsInTemplate&&(_2d3(_2d5,"dojoType")||_2d3(_2d5,"data-dojo-type"))){continue;}var _2d6=_2d3(_2d5,"dojoAttachPoint")||_2d3(_2d5,"data-dojo-attach-point");if(_2d6){var _2d7,_2d8=_2d6.split(/\s*,\s*/);while((_2d7=_2d8.shift())){if(lang.isArray(this[_2d7])){this[_2d7].push(_2d5);}else{this[_2d7]=_2d5;}this._attachPoints.push(_2d7);}}var _2d9=_2d3(_2d5,"dojoAttachEvent")||_2d3(_2d5,"data-dojo-attach-event");if(_2d9){var _2da,_2db=_2d9.split(/\s*,\s*/);var trim=lang.trim;while((_2da=_2db.shift())){if(_2da){var _2dc=null;if(_2da.indexOf(":")!=-1){var _2dd=_2da.split(":");_2da=trim(_2dd[0]);_2dc=trim(_2dd[1]);}else{_2da=trim(_2da);}if(!_2dc){_2dc=_2da;}this._attachEvents.push(this.connect(_2d5,_2c4[_2da]||_2da,_2dc));}}}}},destroyRendering:function(){_2c8.forEach(this._attachPoints,function(_2de){delete this[_2de];},this);this._attachPoints=[];_2c8.forEach(this._attachEvents,this.disconnect,this);this._attachEvents=[];this.inherited(arguments);}});_2cc._templateCache={};_2cc.getCachedTemplate=function(_2df,_2e0,doc){var _2e1=_2cc._templateCache;var key=_2df;var _2e2=_2e1[key];if(_2e2){try{if(!_2e2.ownerDocument||_2e2.ownerDocument==(doc||document)){return _2e2;}}catch(e){}_2ca.destroy(_2e2);}_2df=_2c6.trim(_2df);if(_2e0||_2df.match(/\$\{([^\}]+)\}/g)){return (_2e1[key]=_2df);}else{var node=_2ca.toDom(_2df,doc);if(node.nodeType!=1){throw new Error("Invalid template: "+_2df);}return (_2e1[key]=node);}};if(has("ie")){_2cb.addOnWindowUnload(function(){var _2e3=_2cc._templateCache;for(var key in _2e3){var _2e4=_2e3[key];if(typeof _2e4=="object"){_2ca.destroy(_2e4);}delete _2e3[key];}});}lang.extend(_2c5,{dojoAttachEvent:"",dojoAttachPoint:""});return _2cc;});},"dojox/html/metrics":function(){define("dojox/html/metrics",["dojo/_base/kernel","dojo/_base/lang","dojo/_base/sniff","dojo/ready","dojo/_base/unload","dojo/_base/window","dojo/dom-geometry"],function(_2e5,lang,has,_2e6,_2e7,_2e8,_2e9){var dhm=lang.getObject("dojox.html.metrics",true);var _2ea=lang.getObject("dojox");dhm.getFontMeasurements=function(){var _2eb={"1em":0,"1ex":0,"100%":0,"12pt":0,"16px":0,"xx-small":0,"x-small":0,"small":0,"medium":0,"large":0,"x-large":0,"xx-large":0};if(has("ie")){_2e8.doc.documentElement.style.fontSize="100%";}var div=_2e8.doc.createElement("div");var ds=div.style;ds.position="absolute";ds.left="-100px";ds.top="0";ds.width="30px";ds.height="1000em";ds.borderWidth="0";ds.margin="0";ds.padding="0";ds.outline="0";ds.lineHeight="1";ds.overflow="hidden";_2e8.body().appendChild(div);for(var p in _2eb){ds.fontSize=p;_2eb[p]=Math.round(div.offsetHeight*12/16)*16/12/1000;}_2e8.body().removeChild(div);div=null;return _2eb;};var _2ec=null;dhm.getCachedFontMeasurements=function(_2ed){if(_2ed||!_2ec){_2ec=dhm.getFontMeasurements();}return _2ec;};var _2ee=null,_2ef={};dhm.getTextBox=function(text,_2f0,_2f1){var m,s;if(!_2ee){m=_2ee=_2e8.doc.createElement("div");var c=_2e8.doc.createElement("div");c.appendChild(m);s=c.style;s.overflow="scroll";s.position="absolute";s.left="0px";s.top="-10000px";s.width="1px";s.height="1px";s.visibility="hidden";s.borderWidth="0";s.margin="0";s.padding="0";s.outline="0";_2e8.body().appendChild(c);}else{m=_2ee;}m.className="";s=m.style;s.borderWidth="0";s.margin="0";s.padding="0";s.outline="0";if(arguments.length>1&&_2f0){for(var i in _2f0){if(i in _2ef){continue;}s[i]=_2f0[i];}}if(arguments.length>2&&_2f1){m.className=_2f1;}m.innerHTML=text;var box=_2e9.position(m);box.w=m.parentNode.scrollWidth;return box;};var _2f2={w:16,h:16};dhm.getScrollbar=function(){return {w:_2f2.w,h:_2f2.h};};dhm._fontResizeNode=null;dhm.initOnFontResize=function(_2f3){var f=dhm._fontResizeNode=_2e8.doc.createElement("iframe");var fs=f.style;fs.position="absolute";fs.width="5em";fs.height="10em";fs.top="-10000px";fs.display="none";if(has("ie")){f.onreadystatechange=function(){if(f.contentWindow.document.readyState=="complete"){f.onresize=f.contentWindow.parent[_2ea._scopeName].html.metrics._fontresize;}};}else{f.onload=function(){f.contentWindow.onresize=f.contentWindow.parent[_2ea._scopeName].html.metrics._fontresize;};}f.setAttribute("src","javascript:'<html><head><script>if(\"loadFirebugConsole\" in window){window.loadFirebugConsole();}</script></head><body></body></html>'");_2e8.body().appendChild(f);dhm.initOnFontResize=function(){};};dhm.onFontResize=function(){};dhm._fontresize=function(){dhm.onFontResize();};_2e7.addOnUnload(function(){var f=dhm._fontResizeNode;if(f){if(has("ie")&&f.onresize){f.onresize=null;}else{if(f.contentWindow&&f.contentWindow.onresize){f.contentWindow.onresize=null;}}dhm._fontResizeNode=null;}});_2e6(function(){try{var n=_2e8.doc.createElement("div");n.style.cssText="top:0;left:0;width:100px;height:100px;overflow:scroll;position:absolute;visibility:hidden;";_2e8.body().appendChild(n);_2f2.w=n.offsetWidth-n.clientWidth;_2f2.h=n.offsetHeight-n.clientHeight;_2e8.body().removeChild(n);delete n;}catch(e){}if("fontSizeWatch" in _2e5.config&&!!_2e5.config.fontSizeWatch){dhm.initOnFontResize();}});return dhm;});},"dojox/grid/_Builder":function(){define(["../main","dojo/_base/array","dojo/_base/lang","dojo/_base/window","dojo/_base/event","dojo/_base/sniff","dojo/_base/connect","dojo/dnd/Moveable","dojox/html/metrics","./util","dojo/_base/html"],function(_2f4,_2f5,lang,win,_2f6,has,_2f7,_2f8,_2f9,util,html){var dg=_2f4.grid;var _2fa=function(td){return td.cellIndex>=0?td.cellIndex:_2f5.indexOf(td.parentNode.cells,td);};var _2fb=function(tr){return tr.rowIndex>=0?tr.rowIndex:_2f5.indexOf(tr.parentNode.childNodes,tr);};var _2fc=function(_2fd,_2fe){return _2fd&&((_2fd.rows||0)[_2fe]||_2fd.childNodes[_2fe]);};var _2ff=function(node){for(var n=node;n&&n.tagName!="TABLE";n=n.parentNode){}return n;};var _300=function(_301,_302){for(var n=_301;n&&_302(n);n=n.parentNode){}return n;};var _303=function(_304){var name=_304.toUpperCase();return function(node){return node.tagName!=name;};};var _305=util.rowIndexTag;var _306=util.gridViewTag;var _307=dg._Builder=lang.extend(function(view){if(view){this.view=view;this.grid=view.grid;}},{view:null,_table:"<table class=\"dojoxGridRowTable\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" role=\"presentation\"",getTableArray:function(){var html=[this._table];if(this.view.viewWidth){html.push([" style=\"width:",this.view.viewWidth,";\""].join(""));}html.push(">");return html;},generateCellMarkup:function(_308,_309,_30a,_30b){var _30c=[],html;if(_30b){var _30d=_308.index!=_308.grid.getSortIndex()?"":_308.grid.sortInfo>0?"aria-sort=\"ascending\"":"aria-sort=\"descending\"";if(!_308.id){_308.id=this.grid.id+"Hdr"+_308.index;}html=["<th tabIndex=\"-1\" aria-readonly=\"true\" role=\"columnheader\"",_30d,"id=\"",_308.id,"\""];}else{var _30e=this.grid.editable&&!_308.editable?"aria-readonly=\"true\"":"";html=["<td tabIndex=\"-1\" role=\"gridcell\"",_30e];}if(_308.colSpan){html.push(" colspan=\"",_308.colSpan,"\"");}if(_308.rowSpan){html.push(" rowspan=\"",_308.rowSpan,"\"");}html.push(" class=\"dojoxGridCell ");if(_308.classes){html.push(_308.classes," ");}if(_30a){html.push(_30a," ");}_30c.push(html.join(""));_30c.push("");html=["\" idx=\"",_308.index,"\" style=\""];if(_309&&_309[_309.length-1]!=";"){_309+=";";}html.push(_308.styles,_309||"",_308.hidden?"display:none;":"");if(_308.unitWidth){html.push("width:",_308.unitWidth,";");}_30c.push(html.join(""));_30c.push("");html=["\""];if(_308.attrs){html.push(" ",_308.attrs);}html.push(">");_30c.push(html.join(""));_30c.push("");_30c.push(_30b?"</th>":"</td>");return _30c;},isCellNode:function(_30f){return Boolean(_30f&&_30f!=win.doc&&html.attr(_30f,"idx"));},getCellNodeIndex:function(_310){return _310?Number(html.attr(_310,"idx")):-1;},getCellNode:function(_311,_312){for(var i=0,row;((row=_2fc(_311.firstChild,i))&&row.cells);i++){for(var j=0,cell;(cell=row.cells[j]);j++){if(this.getCellNodeIndex(cell)==_312){return cell;}}}return null;},findCellTarget:function(_313,_314){var n=_313;while(n&&(!this.isCellNode(n)||(n.offsetParent&&_306 in n.offsetParent.parentNode&&n.offsetParent.parentNode[_306]!=this.view.id))&&(n!=_314)){n=n.parentNode;}return n!=_314?n:null;},baseDecorateEvent:function(e){e.dispatch="do"+e.type;e.grid=this.grid;e.sourceView=this.view;e.cellNode=this.findCellTarget(e.target,e.rowNode);e.cellIndex=this.getCellNodeIndex(e.cellNode);e.cell=(e.cellIndex>=0?this.grid.getCell(e.cellIndex):null);},findTarget:function(_315,_316){var n=_315;while(n&&(n!=this.domNode)&&(!(_316 in n)||(_306 in n&&n[_306]!=this.view.id))){n=n.parentNode;}return (n!=this.domNode)?n:null;},findRowTarget:function(_317){return this.findTarget(_317,_305);},isIntraNodeEvent:function(e){try{return (e.cellNode&&e.relatedTarget&&html.isDescendant(e.relatedTarget,e.cellNode));}catch(x){return false;}},isIntraRowEvent:function(e){try{var row=e.relatedTarget&&this.findRowTarget(e.relatedTarget);return !row&&(e.rowIndex==-1)||row&&(e.rowIndex==row.gridRowIndex);}catch(x){return false;}},dispatchEvent:function(e){if(e.dispatch in this){return this[e.dispatch](e);}return false;},domouseover:function(e){if(e.cellNode&&(e.cellNode!=this.lastOverCellNode)){this.lastOverCellNode=e.cellNode;this.grid.onMouseOver(e);}this.grid.onMouseOverRow(e);},domouseout:function(e){if(e.cellNode&&(e.cellNode==this.lastOverCellNode)&&!this.isIntraNodeEvent(e,this.lastOverCellNode)){this.lastOverCellNode=null;this.grid.onMouseOut(e);if(!this.isIntraRowEvent(e)){this.grid.onMouseOutRow(e);}}},domousedown:function(e){if(e.cellNode){this.grid.onMouseDown(e);}this.grid.onMouseDownRow(e);}});var _318=dg._ContentBuilder=lang.extend(function(view){_307.call(this,view);},_307.prototype,{update:function(){this.prepareHtml();},prepareHtml:function(){var _319=this.grid.get,_31a=this.view.structure.cells;for(var j=0,row;(row=_31a[j]);j++){for(var i=0,cell;(cell=row[i]);i++){cell.get=cell.get||(cell.value==undefined)&&_319;cell.markup=this.generateCellMarkup(cell,cell.cellStyles,cell.cellClasses,false);if(!this.grid.editable&&cell.editable){this.grid.editable=true;}}}},generateHtml:function(_31b,_31c){var html=this.getTableArray(),v=this.view,_31d=v.structure.cells,item=this.grid.getItem(_31c);util.fire(this.view,"onBeforeRow",[_31c,_31d]);for(var j=0,row;(row=_31d[j]);j++){if(row.hidden||row.header){continue;}html.push(!row.invisible?"<tr>":"<tr class=\"dojoxGridInvisible\">");for(var i=0,cell,m,cc,cs;(cell=row[i]);i++){m=cell.markup;cc=cell.customClasses=[];cs=cell.customStyles=[];m[5]=cell.format(_31c,item);m[1]=cc.join(" ");m[3]=cs.join(";");html.push.apply(html,m);}html.push("</tr>");}html.push("</table>");return html.join("");},decorateEvent:function(e){e.rowNode=this.findRowTarget(e.target);if(!e.rowNode){return false;}e.rowIndex=e.rowNode[_305];this.baseDecorateEvent(e);e.cell=this.grid.getCell(e.cellIndex);return true;}});var _31e=dg._HeaderBuilder=lang.extend(function(view){this.moveable=null;_307.call(this,view);},_307.prototype,{_skipBogusClicks:false,overResizeWidth:4,minColWidth:1,update:function(){if(this.tableMap){this.tableMap.mapRows(this.view.structure.cells);}else{this.tableMap=new dg._TableMap(this.view.structure.cells);}},generateHtml:function(_31f,_320){var html=this.getTableArray(),_321=this.view.structure.cells;util.fire(this.view,"onBeforeRow",[-1,_321]);for(var j=0,row;(row=_321[j]);j++){if(row.hidden){continue;}html.push(!row.invisible?"<tr>":"<tr class=\"dojoxGridInvisible\">");for(var i=0,cell,_322;(cell=row[i]);i++){cell.customClasses=[];cell.customStyles=[];if(this.view.simpleStructure){if(cell.draggable){if(cell.headerClasses){if(cell.headerClasses.indexOf("dojoDndItem")==-1){cell.headerClasses+=" dojoDndItem";}}else{cell.headerClasses="dojoDndItem";}}if(cell.attrs){if(cell.attrs.indexOf("dndType='gridColumn_")==-1){cell.attrs+=" dndType='gridColumn_"+this.grid.id+"'";}}else{cell.attrs="dndType='gridColumn_"+this.grid.id+"'";}}_322=this.generateCellMarkup(cell,cell.headerStyles,cell.headerClasses,true);_322[5]=(_320!=undefined?_320:_31f(cell));_322[3]=cell.customStyles.join(";");_322[1]=cell.customClasses.join(" ");html.push(_322.join(""));}html.push("</tr>");}html.push("</table>");return html.join("");},getCellX:function(e){var n,x=e.layerX;if(has("mozilla")||has("ie")>=9){n=_300(e.target,_303("th"));x-=(n&&n.offsetLeft)||0;var t=e.sourceView.getScrollbarWidth();if(!this.grid.isLeftToRight()){table=_300(n,_303("table"));x-=(table&&table.offsetLeft)||0;}}n=_300(e.target,function(){if(!n||n==e.cellNode){return false;}x+=(n.offsetLeft<0?0:n.offsetLeft);return true;});return x;},decorateEvent:function(e){this.baseDecorateEvent(e);e.rowIndex=-1;e.cellX=this.getCellX(e);return true;},prepareResize:function(e,mod){do{var i=e.cellIndex;e.cellNode=(i?e.cellNode.parentNode.cells[i+mod]:null);e.cellIndex=(e.cellNode?this.getCellNodeIndex(e.cellNode):-1);}while(e.cellNode&&e.cellNode.style.display=="none");return Boolean(e.cellNode);},canResize:function(e){if(!e.cellNode||e.cellNode.colSpan>1){return false;}var cell=this.grid.getCell(e.cellIndex);return !cell.noresize&&cell.canResize();},overLeftResizeArea:function(e){if(html.hasClass(win.body(),"dojoDndMove")){return false;}if(has("ie")){var tN=e.target;if(html.hasClass(tN,"dojoxGridArrowButtonNode")||html.hasClass(tN,"dojoxGridArrowButtonChar")||html.hasClass(tN,"dojoxGridColCaption")){return false;}}if(this.grid.isLeftToRight()){return (e.cellIndex>0)&&(e.cellX>0&&e.cellX<this.overResizeWidth)&&this.prepareResize(e,-1);}var t=e.cellNode&&(e.cellX>0&&e.cellX<this.overResizeWidth);return t;},overRightResizeArea:function(e){if(html.hasClass(win.body(),"dojoDndMove")){return false;}if(has("ie")){var tN=e.target;if(html.hasClass(tN,"dojoxGridArrowButtonNode")||html.hasClass(tN,"dojoxGridArrowButtonChar")||html.hasClass(tN,"dojoxGridColCaption")){return false;}}if(this.grid.isLeftToRight()){return e.cellNode&&(e.cellX>=e.cellNode.offsetWidth-this.overResizeWidth);}return (e.cellIndex>0)&&(e.cellX>=e.cellNode.offsetWidth-this.overResizeWidth)&&this.prepareResize(e,-1);},domousemove:function(e){if(!this.moveable){var c=(this.overRightResizeArea(e)?"dojoxGridColResize":(this.overLeftResizeArea(e)?"dojoxGridColResize":""));if(c&&!this.canResize(e)){c="dojoxGridColNoResize";}html.toggleClass(e.sourceView.headerNode,"dojoxGridColNoResize",(c=="dojoxGridColNoResize"));html.toggleClass(e.sourceView.headerNode,"dojoxGridColResize",(c=="dojoxGridColResize"));if(c){_2f6.stop(e);}}},domousedown:function(e){if(!this.moveable){if((this.overRightResizeArea(e)||this.overLeftResizeArea(e))&&this.canResize(e)){this.beginColumnResize(e);}else{this.grid.onMouseDown(e);this.grid.onMouseOverRow(e);}}},doclick:function(e){if(this._skipBogusClicks){_2f6.stop(e);return true;}return false;},colResizeSetup:function(e,_323){var _324=html.contentBox(e.sourceView.headerNode);if(_323){this.lineDiv=document.createElement("div");var vw=html.position(e.sourceView.headerNode,true);var _325=html.contentBox(e.sourceView.domNode);var l=e.pageX;if(!this.grid.isLeftToRight()&&has("ie")<8){l-=_2f9.getScrollbar().w;}html.style(this.lineDiv,{top:vw.y+"px",left:l+"px",height:(_325.h+_324.h)+"px"});html.addClass(this.lineDiv,"dojoxGridResizeColLine");this.lineDiv._origLeft=l;win.body().appendChild(this.lineDiv);}var _326=[],_327=this.tableMap.findOverlappingNodes(e.cellNode);for(var i=0,cell;(cell=_327[i]);i++){_326.push({node:cell,index:this.getCellNodeIndex(cell),width:cell.offsetWidth});}var view=e.sourceView;var adj=this.grid.isLeftToRight()?1:-1;var _328=e.grid.views.views;var _329=[];for(var j=view.idx+adj,_32a;(_32a=_328[j]);j=j+adj){_329.push({node:_32a.headerNode,left:window.parseInt(_32a.headerNode.style.left)});}var _32b=view.headerContentNode.firstChild;var drag={scrollLeft:e.sourceView.headerNode.scrollLeft,view:view,node:e.cellNode,index:e.cellIndex,w:html.contentBox(e.cellNode).w,vw:_324.w,table:_32b,tw:html.contentBox(_32b).w,spanners:_326,followers:_329};return drag;},beginColumnResize:function(e){this.moverDiv=document.createElement("div");html.style(this.moverDiv,{position:"absolute",left:0});win.body().appendChild(this.moverDiv);html.addClass(this.grid.domNode,"dojoxGridColumnResizing");var m=(this.moveable=new _2f8(this.moverDiv));var drag=this.colResizeSetup(e,true);m.onMove=lang.hitch(this,"doResizeColumn",drag);_2f7.connect(m,"onMoveStop",lang.hitch(this,function(){this.endResizeColumn(drag);if(drag.node.releaseCapture){drag.node.releaseCapture();}this.moveable.destroy();delete this.moveable;this.moveable=null;html.removeClass(this.grid.domNode,"dojoxGridColumnResizing");}));if(e.cellNode.setCapture){e.cellNode.setCapture();}m.onMouseDown(e);},doResizeColumn:function(_32c,_32d,_32e){var _32f=_32e.l;var data={deltaX:_32f,w:_32c.w+(this.grid.isLeftToRight()?_32f:-_32f),vw:_32c.vw+_32f,tw:_32c.tw+_32f};this.dragRecord={inDrag:_32c,mover:_32d,leftTop:_32e};if(data.w>=this.minColWidth){if(!_32d){this.doResizeNow(_32c,data);}else{html.style(this.lineDiv,"left",(this.lineDiv._origLeft+data.deltaX)+"px");}}},endResizeColumn:function(_330){if(this.dragRecord){var _331=this.dragRecord.leftTop;var _332=this.grid.isLeftToRight()?_331.l:-_331.l;_332+=Math.max(_330.w+_332,this.minColWidth)-(_330.w+_332);if(has("webkit")&&_330.spanners.length){_332+=html._getPadBorderExtents(_330.spanners[0].node).w;}var data={deltaX:_332,w:_330.w+_332,vw:_330.vw+_332,tw:_330.tw+_332};this.doResizeNow(_330,data);delete this.dragRecord;}html.destroy(this.lineDiv);html.destroy(this.moverDiv);html.destroy(this.moverDiv);delete this.moverDiv;this._skipBogusClicks=true;_330.view.update();this._skipBogusClicks=false;this.grid.onResizeColumn(_330.index);},doResizeNow:function(_333,data){_333.view.convertColPctToFixed();if(_333.view.flexCells&&!_333.view.testFlexCells()){var t=_2ff(_333.node);if(t){(t.style.width="");}}var i,s,sw,f,fl;for(i=0;(s=_333.spanners[i]);i++){sw=s.width+data.deltaX;if(sw>0){s.node.style.width=sw+"px";_333.view.setColWidth(s.index,sw);}}if(this.grid.isLeftToRight()||!has("ie")){for(i=0;(f=_333.followers[i]);i++){fl=f.left+data.deltaX;f.node.style.left=fl+"px";}}_333.node.style.width=data.w+"px";_333.view.setColWidth(_333.index,data.w);_333.view.headerNode.style.width=data.vw+"px";_333.view.setColumnsWidth(data.tw);if(!this.grid.isLeftToRight()){_333.view.headerNode.scrollLeft=_333.scrollLeft+data.deltaX;}}});dg._TableMap=lang.extend(function(rows){this.mapRows(rows);},{map:null,mapRows:function(_334){var _335=_334.length;if(!_335){return;}this.map=[];var row;for(var k=0;(row=_334[k]);k++){this.map[k]=[];}for(var j=0;(row=_334[j]);j++){for(var i=0,x=0,cell,_336,_337;(cell=row[i]);i++){while(this.map[j][x]){x++;}this.map[j][x]={c:i,r:j};_337=cell.rowSpan||1;_336=cell.colSpan||1;for(var y=0;y<_337;y++){for(var s=0;s<_336;s++){this.map[j+y][x+s]=this.map[j][x];}}x+=_336;}}},dumpMap:function(){for(var j=0,row,h="";(row=this.map[j]);j++,h=""){for(var i=0,cell;(cell=row[i]);i++){h+=cell.r+","+cell.c+"   ";}}},getMapCoords:function(_338,_339){for(var j=0,row;(row=this.map[j]);j++){for(var i=0,cell;(cell=row[i]);i++){if(cell.c==_339&&cell.r==_338){return {j:j,i:i};}}}return {j:-1,i:-1};},getNode:function(_33a,_33b,_33c){var row=_33a&&_33a.rows[_33b];return row&&row.cells[_33c];},_findOverlappingNodes:function(_33d,_33e,_33f){var _340=[];var m=this.getMapCoords(_33e,_33f);for(var j=0,row;(row=this.map[j]);j++){if(j==m.j){continue;}var rw=row[m.i];var n=(rw?this.getNode(_33d,rw.r,rw.c):null);if(n){_340.push(n);}}return _340;},findOverlappingNodes:function(_341){return this._findOverlappingNodes(_2ff(_341),_2fb(_341.parentNode),_2fa(_341));}});return {_Builder:_307,_HeaderBuilder:_31e,_ContentBuilder:_318};});},"dojox/grid/_Scroller":function(){define("dojox/grid/_Scroller",["dijit/registry","dojo/_base/declare","dojo/_base/lang","./util","dojo/_base/html"],function(_342,_343,lang,util,html){var _344=function(_345){var i=0,n,p=_345.parentNode;while((n=p.childNodes[i++])){if(n==_345){return i-1;}}return -1;};var _346=function(_347){if(!_347){return;}dojo.forEach(_342.toArray(),function(w){if(w.domNode&&html.isDescendant(w.domNode,_347,true)){w.destroy();}});};var _348=function(_349){var node=html.byId(_349);return (node&&node.tagName?node.tagName.toLowerCase():"");};var _34a=function(_34b,_34c){var _34d=[];var i=0,n;while((n=_34b.childNodes[i])){i++;if(_348(n)==_34c){_34d.push(n);}}return _34d;};var _34e=function(_34f){return _34a(_34f,"div");};return _343("dojox.grid._Scroller",null,{constructor:function(_350){this.setContentNodes(_350);this.pageHeights=[];this.pageNodes=[];this.stack=[];},rowCount:0,defaultRowHeight:32,keepRows:100,contentNode:null,scrollboxNode:null,defaultPageHeight:0,keepPages:10,pageCount:0,windowHeight:0,firstVisibleRow:0,lastVisibleRow:0,averageRowHeight:0,page:0,pageTop:0,init:function(_351,_352,_353){switch(arguments.length){case 3:this.rowsPerPage=_353;case 2:this.keepRows=_352;case 1:this.rowCount=_351;default:break;}this.defaultPageHeight=(this.grid.rowHeight>0?this.grid.rowHeight:this.defaultRowHeight)*this.rowsPerPage;this.pageCount=this._getPageCount(this.rowCount,this.rowsPerPage);this.setKeepInfo(this.keepRows);this.invalidate();if(this.scrollboxNode){this.scrollboxNode.scrollTop=0;this.scroll(0);this.scrollboxNode.onscroll=lang.hitch(this,"onscroll");}},_getPageCount:function(_354,_355){return _354?(Math.ceil(_354/_355)||1):0;},destroy:function(){this.invalidateNodes();delete this.contentNodes;delete this.contentNode;delete this.scrollboxNode;},setKeepInfo:function(_356){this.keepRows=_356;this.keepPages=!this.keepRows?this.keepPages:Math.max(Math.ceil(this.keepRows/this.rowsPerPage),2);},setContentNodes:function(_357){this.contentNodes=_357;this.colCount=(this.contentNodes?this.contentNodes.length:0);this.pageNodes=[];for(var i=0;i<this.colCount;i++){this.pageNodes[i]=[];}},getDefaultNodes:function(){return this.pageNodes[0]||[];},invalidate:function(){this._invalidating=true;this.invalidateNodes();this.pageHeights=[];this.height=(this.pageCount?(this.pageCount-1)*this.defaultPageHeight+this.calcLastPageHeight():0);this.resize();this._invalidating=false;},updateRowCount:function(_358){this.invalidateNodes();this.rowCount=_358;var _359=this.pageCount;if(_359===0){this.height=1;}this.pageCount=this._getPageCount(this.rowCount,this.rowsPerPage);if(this.pageCount<_359){for(var i=_359-1;i>=this.pageCount;i--){this.height-=this.getPageHeight(i);delete this.pageHeights[i];}}else{if(this.pageCount>_359){this.height+=this.defaultPageHeight*(this.pageCount-_359-1)+this.calcLastPageHeight();}}this.resize();},pageExists:function(_35a){return Boolean(this.getDefaultPageNode(_35a));},measurePage:function(_35b){if(this.grid.rowHeight){return ((_35b+1)*this.rowsPerPage>this.rowCount?this.rowCount-_35b*this.rowsPerPage:this.rowsPerPage)*this.grid.rowHeight;}var n=this.getDefaultPageNode(_35b);return (n&&n.innerHTML)?n.offsetHeight:undefined;},positionPage:function(_35c,_35d){for(var i=0;i<this.colCount;i++){this.pageNodes[i][_35c].style.top=_35d+"px";}},repositionPages:function(_35e){var _35f=this.getDefaultNodes();var last=0;for(var i=0;i<this.stack.length;i++){last=Math.max(this.stack[i],last);}var n=_35f[_35e];var y=(n?this.getPageNodePosition(n)+this.getPageHeight(_35e):0);for(var p=_35e+1;p<=last;p++){n=_35f[p];if(n){if(this.getPageNodePosition(n)==y){return;}this.positionPage(p,y);}y+=this.getPageHeight(p);}},installPage:function(_360){for(var i=0;i<this.colCount;i++){this.contentNodes[i].appendChild(this.pageNodes[i][_360]);}},preparePage:function(_361,_362){var p=(_362?this.popPage():null);for(var i=0;i<this.colCount;i++){var _363=this.pageNodes[i];var _364=(p===null?this.createPageNode():this.invalidatePageNode(p,_363));_364.pageIndex=_361;_363[_361]=_364;}},renderPage:function(_365){var _366=[];var i,j;for(i=0;i<this.colCount;i++){_366[i]=this.pageNodes[i][_365];}for(i=0,j=_365*this.rowsPerPage;(i<this.rowsPerPage)&&(j<this.rowCount);i++,j++){this.renderRow(j,_366);}},removePage:function(_367){for(var i=0,j=_367*this.rowsPerPage;i<this.rowsPerPage;i++,j++){this.removeRow(j);}},destroyPage:function(_368){for(var i=0;i<this.colCount;i++){var n=this.invalidatePageNode(_368,this.pageNodes[i]);if(n){html.destroy(n);}}},pacify:function(_369){},pacifying:false,pacifyTicks:200,setPacifying:function(_36a){if(this.pacifying!=_36a){this.pacifying=_36a;this.pacify(this.pacifying);}},startPacify:function(){this.startPacifyTicks=new Date().getTime();},doPacify:function(){var _36b=(new Date().getTime()-this.startPacifyTicks)>this.pacifyTicks;this.setPacifying(true);this.startPacify();return _36b;},endPacify:function(){this.setPacifying(false);},resize:function(){if(this.scrollboxNode){this.windowHeight=this.scrollboxNode.clientHeight;}for(var i=0;i<this.colCount;i++){util.setStyleHeightPx(this.contentNodes[i],Math.max(1,this.height));}var _36c=(!this._invalidating);if(!_36c){var ah=this.grid.get("autoHeight");if(typeof ah=="number"&&ah<=Math.min(this.rowsPerPage,this.rowCount)){_36c=true;}}if(_36c){this.needPage(this.page,this.pageTop);}var _36d=(this.page<this.pageCount-1)?this.rowsPerPage:((this.rowCount%this.rowsPerPage)||this.rowsPerPage);var _36e=this.getPageHeight(this.page);this.averageRowHeight=(_36e>0&&_36d>0)?(_36e/_36d):0;},calcLastPageHeight:function(){if(!this.pageCount){return 0;}var _36f=this.pageCount-1;var _370=((this.rowCount%this.rowsPerPage)||(this.rowsPerPage))*this.defaultRowHeight;this.pageHeights[_36f]=_370;return _370;},updateContentHeight:function(inDh){this.height+=inDh;this.resize();},updatePageHeight:function(_371,_372,_373){if(this.pageExists(_371)){var oh=this.getPageHeight(_371);var h=(this.measurePage(_371));if(h===undefined){h=oh;}this.pageHeights[_371]=h;if(oh!=h){this.updateContentHeight(h-oh);var ah=this.grid.get("autoHeight");if((typeof ah=="number"&&ah>this.rowCount)||(ah===true&&!_372)){if(!_373){this.grid.sizeChange();}else{var ns=this.grid.viewsNode.style;ns.height=parseInt(ns.height)+h-oh+"px";this.repositionPages(_371);}}else{this.repositionPages(_371);}}return h;}return 0;},rowHeightChanged:function(_374,_375){this.updatePageHeight(Math.floor(_374/this.rowsPerPage),false,_375);},invalidateNodes:function(){while(this.stack.length){this.destroyPage(this.popPage());}},createPageNode:function(){var p=document.createElement("div");html.attr(p,"role","presentation");p.style.position="absolute";p.style[this.grid.isLeftToRight()?"left":"right"]="0";return p;},getPageHeight:function(_376){var ph=this.pageHeights[_376];return (ph!==undefined?ph:this.defaultPageHeight);},pushPage:function(_377){return this.stack.push(_377);},popPage:function(){return this.stack.shift();},findPage:function(_378){var i=0,h=0;for(var ph=0;i<this.pageCount;i++,h+=ph){ph=this.getPageHeight(i);if(h+ph>=_378){break;}}this.page=i;this.pageTop=h;},buildPage:function(_379,_37a,_37b){this.preparePage(_379,_37a);this.positionPage(_379,_37b);this.installPage(_379);this.renderPage(_379);this.pushPage(_379);},needPage:function(_37c,_37d){var h=this.getPageHeight(_37c),oh=h;if(!this.pageExists(_37c)){this.buildPage(_37c,(!this.grid._autoHeight&&this.keepPages&&(this.stack.length>=this.keepPages)),_37d);h=this.updatePageHeight(_37c,true);}else{this.positionPage(_37c,_37d);}return h;},onscroll:function(){this.scroll(this.scrollboxNode.scrollTop);},scroll:function(_37e){this.grid.scrollTop=_37e;if(this.colCount){this.startPacify();this.findPage(_37e);var h=this.height;var b=this.getScrollBottom(_37e);for(var p=this.page,y=this.pageTop;(p<this.pageCount)&&((b<0)||(y<b));p++){y+=this.needPage(p,y);}this.firstVisibleRow=this.getFirstVisibleRow(this.page,this.pageTop,_37e);this.lastVisibleRow=this.getLastVisibleRow(p-1,y,b);if(h!=this.height){this.repositionPages(p-1);}this.endPacify();}},getScrollBottom:function(_37f){return (this.windowHeight>=0?_37f+this.windowHeight:-1);},processNodeEvent:function(e,_380){var t=e.target;while(t&&(t!=_380)&&t.parentNode&&(t.parentNode.parentNode!=_380)){t=t.parentNode;}if(!t||!t.parentNode||(t.parentNode.parentNode!=_380)){return false;}var page=t.parentNode;e.topRowIndex=page.pageIndex*this.rowsPerPage;e.rowIndex=e.topRowIndex+_344(t);e.rowTarget=t;return true;},processEvent:function(e){return this.processNodeEvent(e,this.contentNode);},renderRow:function(_381,_382){},removeRow:function(_383){},getDefaultPageNode:function(_384){return this.getDefaultNodes()[_384];},positionPageNode:function(_385,_386){},getPageNodePosition:function(_387){return _387.offsetTop;},invalidatePageNode:function(_388,_389){var p=_389[_388];if(p){delete _389[_388];this.removePage(_388,p);_346(p);p.innerHTML="";}return p;},getPageRow:function(_38a){return _38a*this.rowsPerPage;},getLastPageRow:function(_38b){return Math.min(this.rowCount,this.getPageRow(_38b+1))-1;},getFirstVisibleRow:function(_38c,_38d,_38e){if(!this.pageExists(_38c)){return 0;}var row=this.getPageRow(_38c);var _38f=this.getDefaultNodes();var rows=_34e(_38f[_38c]);for(var i=0,l=rows.length;i<l&&_38d<_38e;i++,row++){_38d+=rows[i].offsetHeight;}return (row?row-1:row);},getLastVisibleRow:function(_390,_391,_392){if(!this.pageExists(_390)){return 0;}var _393=this.getDefaultNodes();var row=this.getLastPageRow(_390);var rows=_34e(_393[_390]);for(var i=rows.length-1;i>=0&&_391>_392;i--,row--){_391-=rows[i].offsetHeight;}return row+1;},findTopRow:function(_394){var _395=this.getDefaultNodes();var rows=_34e(_395[this.page]);for(var i=0,l=rows.length,t=this.pageTop,h;i<l;i++){h=rows[i].offsetHeight;t+=h;if(t>=_394){this.offset=h-(t-_394);return i+this.page*this.rowsPerPage;}}return -1;},findScrollTop:function(_396){var _397=Math.floor(_396/this.rowsPerPage);var t=0;var i,l;for(i=0;i<_397;i++){t+=this.getPageHeight(i);}this.pageTop=t;this.page=_397;this.needPage(_397,this.pageTop);var _398=this.getDefaultNodes();var rows=_34e(_398[_397]);var r=_396-this.rowsPerPage*_397;for(i=0,l=rows.length;i<l&&i<r;i++){t+=rows[i].offsetHeight;}return t;},dummy:0});});},"dojox/grid/_Layout":function(){define("dojox/grid/_Layout",["dojo/_base/kernel","../main","dojo/_base/declare","dojo/_base/array","dojo/_base/lang","dojo/dom-geometry","./cells","./_RowSelector"],function(dojo,_399,_39a,_39b,lang,_39c){return _39a("dojox.grid._Layout",null,{constructor:function(_39d){this.grid=_39d;},cells:[],structure:null,defaultWidth:"6em",moveColumn:function(_39e,_39f,_3a0,_3a1,_3a2){var _3a3=this.structure[_39e].cells[0];var _3a4=this.structure[_39f].cells[0];var cell=null;var _3a5=0;var _3a6=0;for(var i=0,c;c=_3a3[i];i++){if(c.index==_3a0){_3a5=i;break;}}cell=_3a3.splice(_3a5,1)[0];cell.view=this.grid.views.views[_39f];for(i=0,c=null;c=_3a4[i];i++){if(c.index==_3a1){_3a6=i;break;}}if(!_3a2){_3a6+=1;}_3a4.splice(_3a6,0,cell);var _3a7=this.grid.getCell(this.grid.getSortIndex());if(_3a7){_3a7._currentlySorted=this.grid.getSortAsc();}this.cells=[];_3a0=0;var v;for(i=0;v=this.structure[i];i++){for(var j=0,cs;cs=v.cells[j];j++){for(var k=0;c=cs[k];k++){c.index=_3a0;this.cells.push(c);if("_currentlySorted" in c){var si=_3a0+1;si*=c._currentlySorted?1:-1;this.grid.sortInfo=si;delete c._currentlySorted;}_3a0++;}}}_39b.forEach(this.cells,function(c){var _3a8=c.markup[2].split(" ");var _3a9=parseInt(_3a8[1].substring(5));if(_3a9!=c.index){_3a8[1]="idx=\""+c.index+"\"";c.markup[2]=_3a8.join(" ");}});this.grid.setupHeaderMenu();},setColumnVisibility:function(_3aa,_3ab){var cell=this.cells[_3aa];if(cell.hidden==_3ab){cell.hidden=!_3ab;var v=cell.view,w=v.viewWidth;if(w&&w!="auto"){v._togglingColumn=_39c.getMarginBox(cell.getHeaderNode()).w||0;}v.update();return true;}else{return false;}},addCellDef:function(_3ac,_3ad,_3ae){var self=this;var _3af=function(_3b0){var w=0;if(_3b0.colSpan>1){w=0;}else{w=_3b0.width||self._defaultCellProps.width||self.defaultWidth;if(!isNaN(w)){w=w+"em";}}return w;};var _3b1={grid:this.grid,subrow:_3ac,layoutIndex:_3ad,index:this.cells.length};if(_3ae&&_3ae instanceof _399.grid.cells._Base){var _3b2=lang.clone(_3ae);_3b1.unitWidth=_3af(_3b2._props);_3b2=lang.mixin(_3b2,this._defaultCellProps,_3ae._props,_3b1);return _3b2;}var _3b3=_3ae.type||_3ae.cellType||this._defaultCellProps.type||this._defaultCellProps.cellType||_399.grid.cells.Cell;if(lang.isString(_3b3)){_3b3=lang.getObject(_3b3);}_3b1.unitWidth=_3af(_3ae);return new _3b3(lang.mixin({},this._defaultCellProps,_3ae,_3b1));},addRowDef:function(_3b4,_3b5){var _3b6=[];var _3b7=0,_3b8=0,_3b9=true;for(var i=0,def,cell;(def=_3b5[i]);i++){cell=this.addCellDef(_3b4,i,def);_3b6.push(cell);this.cells.push(cell);if(_3b9&&cell.relWidth){_3b7+=cell.relWidth;}else{if(cell.width){var w=cell.width;if(typeof w=="string"&&w.slice(-1)=="%"){_3b8+=window.parseInt(w,10);}else{if(w=="auto"){_3b9=false;}}}}}if(_3b7&&_3b9){_39b.forEach(_3b6,function(cell){if(cell.relWidth){cell.width=cell.unitWidth=((cell.relWidth/_3b7)*(100-_3b8))+"%";}});}return _3b6;},addRowsDef:function(_3ba){var _3bb=[];if(lang.isArray(_3ba)){if(lang.isArray(_3ba[0])){for(var i=0,row;_3ba&&(row=_3ba[i]);i++){_3bb.push(this.addRowDef(i,row));}}else{_3bb.push(this.addRowDef(0,_3ba));}}return _3bb;},addViewDef:function(_3bc){this._defaultCellProps=_3bc.defaultCell||{};if(_3bc.width&&_3bc.width=="auto"){delete _3bc.width;}return lang.mixin({},_3bc,{cells:this.addRowsDef(_3bc.rows||_3bc.cells)});},setStructure:function(_3bd){this.fieldIndex=0;this.cells=[];var s=this.structure=[];if(this.grid.rowSelector){var sel={type:_399._scopeName+".grid._RowSelector"};if(lang.isString(this.grid.rowSelector)){var _3be=this.grid.rowSelector;if(_3be=="false"){sel=null;}else{if(_3be!="true"){sel["width"]=_3be;}}}else{if(!this.grid.rowSelector){sel=null;}}if(sel){s.push(this.addViewDef(sel));}}var _3bf=function(def){return ("name" in def||"field" in def||"get" in def);};var _3c0=function(def){if(lang.isArray(def)){if(lang.isArray(def[0])||_3bf(def[0])){return true;}}return false;};var _3c1=function(def){return (def!==null&&lang.isObject(def)&&("cells" in def||"rows" in def||("type" in def&&!_3bf(def))));};if(lang.isArray(_3bd)){var _3c2=false;for(var i=0,st;(st=_3bd[i]);i++){if(_3c1(st)){_3c2=true;break;}}if(!_3c2){s.push(this.addViewDef({cells:_3bd}));}else{for(i=0;(st=_3bd[i]);i++){if(_3c0(st)){s.push(this.addViewDef({cells:st}));}else{if(_3c1(st)){s.push(this.addViewDef(st));}}}}}else{if(_3c1(_3bd)){s.push(this.addViewDef(_3bd));}}this.cellCount=this.cells.length;this.grid.setupHeaderMenu();}});});},"dojo/dnd/Source":function(){define(["../_base/array","../_base/connect","../_base/declare","../_base/kernel","../_base/lang","../dom-class","../dom-geometry","../mouse","../ready","../topic","./common","./Selector","./Manager"],function(_3c3,_3c4,_3c5,_3c6,lang,_3c7,_3c8,_3c9,_3ca,_3cb,dnd,_3cc,_3cd){if(!_3c6.isAsync){_3ca(0,function(){var _3ce=["dojo/dnd/AutoSource","dojo/dnd/Target"];require(_3ce);});}var _3cf=_3c5("dojo.dnd.Source",_3cc,{isSource:true,horizontal:false,copyOnly:false,selfCopy:false,selfAccept:true,skipForm:false,withHandles:false,autoSync:false,delay:0,accept:["text"],generateText:true,constructor:function(node,_3d0){lang.mixin(this,lang.mixin({},_3d0));var type=this.accept;if(type.length){this.accept={};for(var i=0;i<type.length;++i){this.accept[type[i]]=1;}}this.isDragging=false;this.mouseDown=false;this.targetAnchor=null;this.targetBox=null;this.before=true;this._lastX=0;this._lastY=0;this.sourceState="";if(this.isSource){_3c7.add(this.node,"dojoDndSource");}this.targetState="";if(this.accept){_3c7.add(this.node,"dojoDndTarget");}if(this.horizontal){_3c7.add(this.node,"dojoDndHorizontal");}this.topics=[_3cb.subscribe("/dnd/source/over",lang.hitch(this,"onDndSourceOver")),_3cb.subscribe("/dnd/start",lang.hitch(this,"onDndStart")),_3cb.subscribe("/dnd/drop",lang.hitch(this,"onDndDrop")),_3cb.subscribe("/dnd/cancel",lang.hitch(this,"onDndCancel"))];},checkAcceptance:function(_3d1,_3d2){if(this==_3d1){return !this.copyOnly||this.selfAccept;}for(var i=0;i<_3d2.length;++i){var type=_3d1.getItem(_3d2[i].id).type;var flag=false;for(var j=0;j<type.length;++j){if(type[j] in this.accept){flag=true;break;}}if(!flag){return false;}}return true;},copyState:function(_3d3,self){if(_3d3){return true;}if(arguments.length<2){self=this==_3cd.manager().target;}if(self){if(this.copyOnly){return this.selfCopy;}}else{return this.copyOnly;}return false;},destroy:function(){_3cf.superclass.destroy.call(this);_3c3.forEach(this.topics,function(t){t.remove();});this.targetAnchor=null;},onMouseMove:function(e){if(this.isDragging&&this.targetState=="Disabled"){return;}_3cf.superclass.onMouseMove.call(this,e);var m=_3cd.manager();if(!this.isDragging){if(this.mouseDown&&this.isSource&&(Math.abs(e.pageX-this._lastX)>this.delay||Math.abs(e.pageY-this._lastY)>this.delay)){var _3d4=this.getSelectedNodes();if(_3d4.length){m.startDrag(this,_3d4,this.copyState(dnd.getCopyKeyState(e),true));}}}if(this.isDragging){var _3d5=false;if(this.current){if(!this.targetBox||this.targetAnchor!=this.current){this.targetBox=_3c8.position(this.current,true);}if(this.horizontal){_3d5=(e.pageX-this.targetBox.x<this.targetBox.w/2)==_3c8.isBodyLtr(this.current.ownerDocument);}else{_3d5=(e.pageY-this.targetBox.y)<(this.targetBox.h/2);}}if(this.current!=this.targetAnchor||_3d5!=this.before){this._markTargetAnchor(_3d5);m.canDrop(!this.current||m.source!=this||!(this.current.id in this.selection));}}},onMouseDown:function(e){if(!this.mouseDown&&this._legalMouseDown(e)&&(!this.skipForm||!dnd.isFormElement(e))){this.mouseDown=true;this._lastX=e.pageX;this._lastY=e.pageY;_3cf.superclass.onMouseDown.call(this,e);}},onMouseUp:function(e){if(this.mouseDown){this.mouseDown=false;_3cf.superclass.onMouseUp.call(this,e);}},onDndSourceOver:function(_3d6){if(this!==_3d6){this.mouseDown=false;if(this.targetAnchor){this._unmarkTargetAnchor();}}else{if(this.isDragging){var m=_3cd.manager();m.canDrop(this.targetState!="Disabled"&&(!this.current||m.source!=this||!(this.current.id in this.selection)));}}},onDndStart:function(_3d7,_3d8,copy){if(this.autoSync){this.sync();}if(this.isSource){this._changeState("Source",this==_3d7?(copy?"Copied":"Moved"):"");}var _3d9=this.accept&&this.checkAcceptance(_3d7,_3d8);this._changeState("Target",_3d9?"":"Disabled");if(this==_3d7){_3cd.manager().overSource(this);}this.isDragging=true;},onDndDrop:function(_3da,_3db,copy,_3dc){if(this==_3dc){this.onDrop(_3da,_3db,copy);}this.onDndCancel();},onDndCancel:function(){if(this.targetAnchor){this._unmarkTargetAnchor();this.targetAnchor=null;}this.before=true;this.isDragging=false;this.mouseDown=false;this._changeState("Source","");this._changeState("Target","");},onDrop:function(_3dd,_3de,copy){if(this!=_3dd){this.onDropExternal(_3dd,_3de,copy);}else{this.onDropInternal(_3de,copy);}},onDropExternal:function(_3df,_3e0,copy){var _3e1=this._normalizedCreator;if(this.creator){this._normalizedCreator=function(node,hint){return _3e1.call(this,_3df.getItem(node.id).data,hint);};}else{if(copy){this._normalizedCreator=function(node){var t=_3df.getItem(node.id);var n=node.cloneNode(true);n.id=dnd.getUniqueId();return {node:n,data:t.data,type:t.type};};}else{this._normalizedCreator=function(node){var t=_3df.getItem(node.id);_3df.delItem(node.id);return {node:node,data:t.data,type:t.type};};}}this.selectNone();if(!copy&&!this.creator){_3df.selectNone();}this.insertNodes(true,_3e0,this.before,this.current);if(!copy&&this.creator){_3df.deleteSelectedNodes();}this._normalizedCreator=_3e1;},onDropInternal:function(_3e2,copy){var _3e3=this._normalizedCreator;if(this.current&&this.current.id in this.selection){return;}if(copy){if(this.creator){this._normalizedCreator=function(node,hint){return _3e3.call(this,this.getItem(node.id).data,hint);};}else{this._normalizedCreator=function(node){var t=this.getItem(node.id);var n=node.cloneNode(true);n.id=dnd.getUniqueId();return {node:n,data:t.data,type:t.type};};}}else{if(!this.current){return;}this._normalizedCreator=function(node){var t=this.getItem(node.id);return {node:node,data:t.data,type:t.type};};}this._removeSelection();this.insertNodes(true,_3e2,this.before,this.current);this._normalizedCreator=_3e3;},onDraggingOver:function(){},onDraggingOut:function(){},onOverEvent:function(){_3cf.superclass.onOverEvent.call(this);_3cd.manager().overSource(this);if(this.isDragging&&this.targetState!="Disabled"){this.onDraggingOver();}},onOutEvent:function(){_3cf.superclass.onOutEvent.call(this);_3cd.manager().outSource(this);if(this.isDragging&&this.targetState!="Disabled"){this.onDraggingOut();}},_markTargetAnchor:function(_3e4){if(this.current==this.targetAnchor&&this.before==_3e4){return;}if(this.targetAnchor){this._removeItemClass(this.targetAnchor,this.before?"Before":"After");}this.targetAnchor=this.current;this.targetBox=null;this.before=_3e4;if(this.targetAnchor){this._addItemClass(this.targetAnchor,this.before?"Before":"After");}},_unmarkTargetAnchor:function(){if(!this.targetAnchor){return;}this._removeItemClass(this.targetAnchor,this.before?"Before":"After");this.targetAnchor=null;this.targetBox=null;this.before=true;},_markDndStatus:function(copy){this._changeState("Source",copy?"Copied":"Moved");},_legalMouseDown:function(e){if(e.type!="touchstart"&&!_3c9.isLeft(e)){return false;}if(!this.withHandles){return true;}for(var node=e.target;node&&node!==this.node;node=node.parentNode){if(_3c7.contains(node,"dojoDndHandle")){return true;}if(_3c7.contains(node,"dojoDndItem")||_3c7.contains(node,"dojoDndIgnore")){break;}}return false;}});return _3cf;});},"dijit/_Widget":function(){define("dijit/_Widget",["dojo/aspect","dojo/_base/config","dojo/_base/connect","dojo/_base/declare","dojo/has","dojo/_base/kernel","dojo/_base/lang","dojo/query","dojo/ready","./registry","./_WidgetBase","./_OnDijitClickMixin","./_FocusMixin","dojo/uacss","./hccss"],function(_3e5,_3e6,_3e7,_3e8,has,_3e9,lang,_3ea,_3eb,_3ec,_3ed,_3ee,_3ef){function _3f0(){};function _3f1(_3f2){return function(obj,_3f3,_3f4,_3f5){if(obj&&typeof _3f3=="string"&&obj[_3f3]==_3f0){return obj.on(_3f3.substring(2).toLowerCase(),lang.hitch(_3f4,_3f5));}return _3f2.apply(_3e7,arguments);};};_3e5.around(_3e7,"connect",_3f1);if(_3e9.connect){_3e5.around(_3e9,"connect",_3f1);}var _3f6=_3e8("dijit._Widget",[_3ed,_3ee,_3ef],{onClick:_3f0,onDblClick:_3f0,onKeyDown:_3f0,onKeyPress:_3f0,onKeyUp:_3f0,onMouseDown:_3f0,onMouseMove:_3f0,onMouseOut:_3f0,onMouseOver:_3f0,onMouseLeave:_3f0,onMouseEnter:_3f0,onMouseUp:_3f0,constructor:function(_3f7){this._toConnect={};for(var name in _3f7){if(this[name]===_3f0){this._toConnect[name.replace(/^on/,"").toLowerCase()]=_3f7[name];delete _3f7[name];}}},postCreate:function(){this.inherited(arguments);for(var name in this._toConnect){this.on(name,this._toConnect[name]);}delete this._toConnect;},on:function(type,func){if(this[this._onMap(type)]===_3f0){return _3e7.connect(this.domNode,type.toLowerCase(),this,func);}return this.inherited(arguments);},_setFocusedAttr:function(val){this._focused=val;this._set("focused",val);},setAttribute:function(attr,_3f8){_3e9.deprecated(this.declaredClass+"::setAttribute(attr, value) is deprecated. Use set() instead.","","2.0");this.set(attr,_3f8);},attr:function(name,_3f9){if(_3e6.isDebug){var _3fa=arguments.callee._ach||(arguments.callee._ach={}),_3fb=(arguments.callee.caller||"unknown caller").toString();if(!_3fa[_3fb]){_3e9.deprecated(this.declaredClass+"::attr() is deprecated. Use get() or set() instead, called from "+_3fb,"","2.0");_3fa[_3fb]=true;}}var args=arguments.length;if(args>=2||typeof name==="object"){return this.set.apply(this,arguments);}else{return this.get(name);}},getDescendants:function(){_3e9.deprecated(this.declaredClass+"::getDescendants() is deprecated. Use getChildren() instead.","","2.0");return this.containerNode?_3ea("[widgetId]",this.containerNode).map(_3ec.byNode):[];},_onShow:function(){this.onShow();},onShow:function(){},onHide:function(){},onClose:function(){return true;}});if(has("dijit-legacy-requires")){_3eb(0,function(){var _3fc=["dijit/_base"];require(_3fc);});}return _3f6;});},"dijit/_FocusMixin":function(){define("dijit/_FocusMixin",["./focus","./_WidgetBase","dojo/_base/declare","dojo/_base/lang"],function(_3fd,_3fe,_3ff,lang){lang.extend(_3fe,{focused:false,onFocus:function(){},onBlur:function(){},_onFocus:function(){this.onFocus();},_onBlur:function(){this.onBlur();}});return _3ff("dijit._FocusMixin",null,{_focusManager:_3fd});});},"dijit/focus":function(){define("dijit/focus",["dojo/aspect","dojo/_base/declare","dojo/dom","dojo/dom-attr","dojo/dom-construct","dojo/Evented","dojo/_base/lang","dojo/on","dojo/ready","dojo/sniff","dojo/Stateful","dojo/_base/unload","dojo/_base/window","dojo/window","./a11y","./registry","./main"],function(_400,_401,dom,_402,_403,_404,lang,on,_405,has,_406,_407,win,_408,a11y,_409,_40a){var _40b=_401([_406,_404],{curNode:null,activeStack:[],constructor:function(){var _40c=lang.hitch(this,function(node){if(dom.isDescendant(this.curNode,node)){this.set("curNode",null);}if(dom.isDescendant(this.prevNode,node)){this.set("prevNode",null);}});_400.before(_403,"empty",_40c);_400.before(_403,"destroy",_40c);},registerIframe:function(_40d){return this.registerWin(_40d.contentWindow,_40d);},registerWin:function(_40e,_40f){var _410=this;var _411=function(evt){_410._justMouseDowned=true;setTimeout(function(){_410._justMouseDowned=false;},0);if(has("ie")&&evt&&evt.srcElement&&evt.srcElement.parentNode==null){return;}_410._onTouchNode(_40f||evt.target||evt.srcElement,"mouse");};var doc=has("ie")?_40e.document.documentElement:_40e.document;if(doc){if(has("ie")){_40e.document.body.attachEvent("onmousedown",_411);var _412=function(evt){var tag=evt.srcElement.tagName.toLowerCase();if(tag=="#document"||tag=="body"){return;}if(a11y.isTabNavigable(evt.srcElement)){_410._onFocusNode(_40f||evt.srcElement);}else{_410._onTouchNode(_40f||evt.srcElement);}};doc.attachEvent("onfocusin",_412);var _413=function(evt){_410._onBlurNode(_40f||evt.srcElement);};doc.attachEvent("onfocusout",_413);return {remove:function(){_40e.document.detachEvent("onmousedown",_411);doc.detachEvent("onfocusin",_412);doc.detachEvent("onfocusout",_413);doc=null;}};}else{doc.body.addEventListener("mousedown",_411,true);doc.body.addEventListener("touchstart",_411,true);var _414=function(evt){_410._onFocusNode(_40f||evt.target);};doc.addEventListener("focus",_414,true);var _415=function(evt){_410._onBlurNode(_40f||evt.target);};doc.addEventListener("blur",_415,true);return {remove:function(){doc.body.removeEventListener("mousedown",_411,true);doc.body.removeEventListener("touchstart",_411,true);doc.removeEventListener("focus",_414,true);doc.removeEventListener("blur",_415,true);doc=null;}};}}},_onBlurNode:function(node){if(this._clearFocusTimer){clearTimeout(this._clearFocusTimer);}this._clearFocusTimer=setTimeout(lang.hitch(this,function(){this.set("prevNode",this.curNode);this.set("curNode",null);}),0);if(this._justMouseDowned){return;}if(this._clearActiveWidgetsTimer){clearTimeout(this._clearActiveWidgetsTimer);}this._clearActiveWidgetsTimer=setTimeout(lang.hitch(this,function(){delete this._clearActiveWidgetsTimer;this._setStack([]);}),0);},_onTouchNode:function(node,by){if(this._clearActiveWidgetsTimer){clearTimeout(this._clearActiveWidgetsTimer);delete this._clearActiveWidgetsTimer;}var _416=[];try{while(node){var _417=_402.get(node,"dijitPopupParent");if(_417){node=_409.byId(_417).domNode;}else{if(node.tagName&&node.tagName.toLowerCase()=="body"){if(node===win.body()){break;}node=_408.get(node.ownerDocument).frameElement;}else{var id=node.getAttribute&&node.getAttribute("widgetId"),_418=id&&_409.byId(id);if(_418&&!(by=="mouse"&&_418.get("disabled"))){_416.unshift(id);}node=node.parentNode;}}}}catch(e){}this._setStack(_416,by);},_onFocusNode:function(node){if(!node){return;}if(node.nodeType==9){return;}if(this._clearFocusTimer){clearTimeout(this._clearFocusTimer);delete this._clearFocusTimer;}this._onTouchNode(node);if(node==this.curNode){return;}this.set("prevNode",this.curNode);this.set("curNode",node);},_setStack:function(_419,by){var _41a=this.activeStack;this.set("activeStack",_419);for(var _41b=0;_41b<Math.min(_41a.length,_419.length);_41b++){if(_41a[_41b]!=_419[_41b]){break;}}var _41c;for(var i=_41a.length-1;i>=_41b;i--){_41c=_409.byId(_41a[i]);if(_41c){_41c._hasBeenBlurred=true;_41c.set("focused",false);if(_41c._focusManager==this){_41c._onBlur(by);}this.emit("widget-blur",_41c,by);}}for(i=_41b;i<_419.length;i++){_41c=_409.byId(_419[i]);if(_41c){_41c.set("focused",true);if(_41c._focusManager==this){_41c._onFocus(by);}this.emit("widget-focus",_41c,by);}}},focus:function(node){if(node){try{node.focus();}catch(e){}}}});var _41d=new _40b();_405(function(){var _41e=_41d.registerWin(_408.get(win.doc));if(has("ie")){_407.addOnWindowUnload(function(){if(_41e){_41e.remove();_41e=null;}});}});_40a.focus=function(node){_41d.focus(node);};for(var attr in _41d){if(!/^_/.test(attr)){_40a.focus[attr]=typeof _41d[attr]=="function"?lang.hitch(_41d,attr):_41d[attr];}}_41d.watch(function(attr,_41f,_420){_40a.focus[attr]=_420;});return _41d;});},"dijit/_Contained":function(){define("dijit/_Contained",["dojo/_base/declare","./registry"],function(_421,_422){return _421("dijit._Contained",null,{_getSibling:function(_423){var node=this.domNode;do{node=node[_423+"Sibling"];}while(node&&node.nodeType!=1);return node&&_422.byNode(node);},getPreviousSibling:function(){return this._getSibling("previous");},getNextSibling:function(){return this._getSibling("next");},getIndexInParent:function(){var p=this.getParent();if(!p||!p.getIndexOfChild){return -1;}return p.getIndexOfChild(this);}});});},"dojox/grid/_RowManager":function(){define(["dojo/_base/declare","dojo/_base/lang","dojo/dom-class"],function(_424,lang,_425){var _426=function(_427,_428){if(_427.style.cssText==undefined){_427.setAttribute("style",_428);}else{_427.style.cssText=_428;}};return _424("dojox.grid._RowManager",null,{constructor:function(_429){this.grid=_429;},linesToEms:2,overRow:-2,prepareStylingRow:function(_42a,_42b){return {index:_42a,node:_42b,odd:Boolean(_42a&1),selected:!!this.grid.selection.isSelected(_42a),over:this.isOver(_42a),customStyles:"",customClasses:"dojoxGridRow"};},styleRowNode:function(_42c,_42d){var row=this.prepareStylingRow(_42c,_42d);this.grid.onStyleRow(row);this.applyStyles(row);},applyStyles:function(_42e){var i=_42e;i.node.className=i.customClasses;var h=i.node.style.height;_426(i.node,i.customStyles+";"+(i.node._style||""));i.node.style.height=h;},updateStyles:function(_42f){this.grid.updateRowStyles(_42f);},setOverRow:function(_430){var last=this.overRow;this.overRow=_430;if((last!=this.overRow)&&(lang.isString(last)||last>=0)){this.updateStyles(last);}this.updateStyles(this.overRow);},isOver:function(_431){return (this.overRow==_431&&!_425.contains(this.grid.domNode,"dojoxGridColumnResizing"));}});});},"dijit/main":function(){define("dijit/main",["dojo/_base/kernel"],function(dojo){return dojo.dijit;});},"dijit/Destroyable":function(){define("dijit/Destroyable",["dojo/_base/array","dojo/aspect","dojo/_base/declare"],function(_432,_433,_434){return _434("dijit.Destroyable",null,{destroy:function(_435){this._destroyed=true;},own:function(){_432.forEach(arguments,function(_436){var _437="destroyRecursive" in _436?"destroyRecursive":"destroy" in _436?"destroy":"remove";var odh=_433.before(this,"destroy",function(_438){_436[_437](_438);});_433.after(_436,_437,function(){odh.remove();},true);},this);return arguments;}});});},"dojo/dnd/Container":function(){define(["../_base/array","../_base/declare","../_base/event","../_base/kernel","../_base/lang","../_base/window","../dom","../dom-class","../dom-construct","../Evented","../has","../on","../query","../ready","../touch","./common"],function(_439,_43a,_43b,_43c,lang,win,dom,_43d,_43e,_43f,has,on,_440,_441,_442,dnd){var _443=_43a("dojo.dnd.Container",_43f,{skipForm:false,allowNested:false,constructor:function(node,_444){this.node=dom.byId(node);if(!_444){_444={};}this.creator=_444.creator||null;this.skipForm=_444.skipForm;this.parent=_444.dropParent&&dom.byId(_444.dropParent);this.map={};this.current=null;this.containerState="";_43d.add(this.node,"dojoDndContainer");if(!(_444&&_444._skipStartup)){this.startup();}this.events=[on(this.node,_442.over,lang.hitch(this,"onMouseOver")),on(this.node,_442.out,lang.hitch(this,"onMouseOut")),on(this.node,"dragstart",lang.hitch(this,"onSelectStart")),on(this.node,"selectstart",lang.hitch(this,"onSelectStart"))];},creator:function(){},getItem:function(key){return this.map[key];},setItem:function(key,data){this.map[key]=data;},delItem:function(key){delete this.map[key];},forInItems:function(f,o){o=o||_43c.global;var m=this.map,e=dnd._empty;for(var i in m){if(i in e){continue;}f.call(o,m[i],i,this);}return o;},clearItems:function(){this.map={};},getAllNodes:function(){return _440((this.allowNested?"":"> ")+".dojoDndItem",this.parent);},sync:function(){var map={};this.getAllNodes().forEach(function(node){if(node.id){var item=this.getItem(node.id);if(item){map[node.id]=item;return;}}else{node.id=dnd.getUniqueId();}var type=node.getAttribute("dndType"),data=node.getAttribute("dndData");map[node.id]={data:data||node.innerHTML,type:type?type.split(/\s*,\s*/):["text"]};},this);this.map=map;return this;},insertNodes:function(data,_445,_446){if(!this.parent.firstChild){_446=null;}else{if(_445){if(!_446){_446=this.parent.firstChild;}}else{if(_446){_446=_446.nextSibling;}}}var i,t;if(_446){for(i=0;i<data.length;++i){t=this._normalizedCreator(data[i]);this.setItem(t.node.id,{data:t.data,type:t.type});_446.parentNode.insertBefore(t.node,_446);}}else{for(i=0;i<data.length;++i){t=this._normalizedCreator(data[i]);this.setItem(t.node.id,{data:t.data,type:t.type});this.parent.appendChild(t.node);}}return this;},destroy:function(){_439.forEach(this.events,function(_447){_447.remove();});this.clearItems();this.node=this.parent=this.current=null;},markupFactory:function(_448,node,Ctor){_448._skipStartup=true;return new Ctor(node,_448);},startup:function(){if(!this.parent){this.parent=this.node;if(this.parent.tagName.toLowerCase()=="table"){var c=this.parent.getElementsByTagName("tbody");if(c&&c.length){this.parent=c[0];}}}this.defaultCreator=dnd._defaultCreator(this.parent);this.sync();},onMouseOver:function(e){var n=e.relatedTarget;while(n){if(n==this.node){break;}try{n=n.parentNode;}catch(x){n=null;}}if(!n){this._changeState("Container","Over");this.onOverEvent();}n=this._getChildByEvent(e);if(this.current==n){return;}if(this.current){this._removeItemClass(this.current,"Over");}if(n){this._addItemClass(n,"Over");}this.current=n;},onMouseOut:function(e){for(var n=e.relatedTarget;n;){if(n==this.node){return;}try{n=n.parentNode;}catch(x){n=null;}}if(this.current){this._removeItemClass(this.current,"Over");this.current=null;}this._changeState("Container","");this.onOutEvent();},onSelectStart:function(e){if(!this.skipForm||!dnd.isFormElement(e)){_43b.stop(e);}},onOverEvent:function(){},onOutEvent:function(){},_changeState:function(type,_449){var _44a="dojoDnd"+type;var _44b=type.toLowerCase()+"State";_43d.replace(this.node,_44a+_449,_44a+this[_44b]);this[_44b]=_449;},_addItemClass:function(node,type){_43d.add(node,"dojoDndItem"+type);},_removeItemClass:function(node,type){_43d.remove(node,"dojoDndItem"+type);},_getChildByEvent:function(e){var node=e.target;if(node){for(var _44c=node.parentNode;_44c;node=_44c,_44c=node.parentNode){if((_44c==this.parent||this.allowNested)&&_43d.contains(node,"dojoDndItem")){return node;}}}return null;},_normalizedCreator:function(item,hint){var t=(this.creator||this.defaultCreator).call(this,item,hint);if(!lang.isArray(t.type)){t.type=["text"];}if(!t.node.id){t.node.id=dnd.getUniqueId();}_43d.add(t.node,"dojoDndItem");return t;}});dnd._createNode=function(tag){if(!tag){return dnd._createSpan;}return function(text){return _43e.create(tag,{innerHTML:text});};};dnd._createTrTd=function(text){var tr=_43e.create("tr");_43e.create("td",{innerHTML:text},tr);return tr;};dnd._createSpan=function(text){return _43e.create("span",{innerHTML:text});};dnd._defaultCreatorNodes={ul:"li",ol:"li",div:"div",p:"div"};dnd._defaultCreator=function(node){var tag=node.tagName.toLowerCase();var c=tag=="tbody"||tag=="thead"?dnd._createTrTd:dnd._createNode(dnd._defaultCreatorNodes[tag]);return function(item,hint){var _44d=item&&lang.isObject(item),data,type,n;if(_44d&&item.tagName&&item.nodeType&&item.getAttribute){data=item.getAttribute("dndData")||item.innerHTML;type=item.getAttribute("dndType");type=type?type.split(/\s*,\s*/):["text"];n=item;}else{data=(_44d&&item.data)?item.data:item;type=(_44d&&item.type)?item.type:["text"];n=(hint=="avatar"?dnd._createSpan:c)(String(data));}if(!n.id){n.id=dnd.getUniqueId();}return {node:n,data:data,type:type};};};return _443;});},"url:dijit/templates/CheckedMenuItem.html":"<tr class=\"dijitReset dijitMenuItem\" data-dojo-attach-point=\"focusNode\" role=\"menuitemcheckbox\" tabIndex=\"-1\">\n\t<td class=\"dijitReset dijitMenuItemIconCell\" role=\"presentation\">\n\t\t<img src=\"${_blankGif}\" alt=\"\" class=\"dijitMenuItemIcon dijitCheckedMenuItemIcon\" data-dojo-attach-point=\"iconNode\"/>\n\t\t<span class=\"dijitCheckedMenuItemIconChar\">&#10003;</span>\n\t</td>\n\t<td class=\"dijitReset dijitMenuItemLabel\" colspan=\"2\" data-dojo-attach-point=\"containerNode,labelNode\"></td>\n\t<td class=\"dijitReset dijitMenuItemAccelKey\" style=\"display: none\" data-dojo-attach-point=\"accelKeyNode\"></td>\n\t<td class=\"dijitReset dijitMenuArrowCell\" role=\"presentation\">&#160;</td>\n</tr>\n","dojo/cache":function(){define(["./_base/kernel","./text"],function(dojo){return dojo.cache;});},"dojo/dnd/Manager":function(){define(["../_base/array","../_base/declare","../_base/event","../_base/lang","../_base/window","../dom-class","../Evented","../has","../keys","../on","../topic","../touch","./common","./autoscroll","./Avatar"],function(_44e,_44f,_450,lang,win,_451,_452,has,keys,on,_453,_454,dnd,_455,_456){var _457=_44f("dojo.dnd.Manager",[_452],{constructor:function(){this.avatar=null;this.source=null;this.nodes=[];this.copy=true;this.target=null;this.canDropFlag=false;this.events=[];},OFFSET_X:has("touch")?0:16,OFFSET_Y:has("touch")?-64:16,overSource:function(_458){if(this.avatar){this.target=(_458&&_458.targetState!="Disabled")?_458:null;this.canDropFlag=Boolean(this.target);this.avatar.update();}_453.publish("/dnd/source/over",_458);},outSource:function(_459){if(this.avatar){if(this.target==_459){this.target=null;this.canDropFlag=false;this.avatar.update();_453.publish("/dnd/source/over",null);}}else{_453.publish("/dnd/source/over",null);}},startDrag:function(_45a,_45b,copy){_455.autoScrollStart(win.doc);this.source=_45a;this.nodes=_45b;this.copy=Boolean(copy);this.avatar=this.makeAvatar();win.body().appendChild(this.avatar.node);_453.publish("/dnd/start",_45a,_45b,this.copy);this.events=[on(win.doc,_454.move,lang.hitch(this,"onMouseMove")),on(win.doc,_454.release,lang.hitch(this,"onMouseUp")),on(win.doc,"keydown",lang.hitch(this,"onKeyDown")),on(win.doc,"keyup",lang.hitch(this,"onKeyUp")),on(win.doc,"dragstart",_450.stop),on(win.body(),"selectstart",_450.stop)];var c="dojoDnd"+(copy?"Copy":"Move");_451.add(win.body(),c);},canDrop:function(flag){var _45c=Boolean(this.target&&flag);if(this.canDropFlag!=_45c){this.canDropFlag=_45c;this.avatar.update();}},stopDrag:function(){_451.remove(win.body(),["dojoDndCopy","dojoDndMove"]);_44e.forEach(this.events,function(_45d){_45d.remove();});this.events=[];this.avatar.destroy();this.avatar=null;this.source=this.target=null;this.nodes=[];},makeAvatar:function(){return new _456(this);},updateAvatar:function(){this.avatar.update();},onMouseMove:function(e){var a=this.avatar;if(a){_455.autoScrollNodes(e);var s=a.node.style;s.left=(e.pageX+this.OFFSET_X)+"px";s.top=(e.pageY+this.OFFSET_Y)+"px";var copy=Boolean(this.source.copyState(dnd.getCopyKeyState(e)));if(this.copy!=copy){this._setCopyStatus(copy);}}if(has("touch")){e.preventDefault();}},onMouseUp:function(e){if(this.avatar){if(this.target&&this.canDropFlag){var copy=Boolean(this.source.copyState(dnd.getCopyKeyState(e)));_453.publish("/dnd/drop/before",this.source,this.nodes,copy,this.target,e);_453.publish("/dnd/drop",this.source,this.nodes,copy,this.target,e);}else{_453.publish("/dnd/cancel");}this.stopDrag();}},onKeyDown:function(e){if(this.avatar){switch(e.keyCode){case keys.CTRL:var copy=Boolean(this.source.copyState(true));if(this.copy!=copy){this._setCopyStatus(copy);}break;case keys.ESCAPE:_453.publish("/dnd/cancel");this.stopDrag();break;}}},onKeyUp:function(e){if(this.avatar&&e.keyCode==keys.CTRL){var copy=Boolean(this.source.copyState(false));if(this.copy!=copy){this._setCopyStatus(copy);}}},_setCopyStatus:function(copy){this.copy=copy;this.source._markDndStatus(this.copy);this.updateAvatar();_451.replace(win.body(),"dojoDnd"+(this.copy?"Copy":"Move"),"dojoDnd"+(this.copy?"Move":"Copy"));}});dnd._manager=null;_457.manager=dnd.manager=function(){if(!dnd._manager){dnd._manager=new _457();}return dnd._manager;};return _457;});},"dojo/dnd/Avatar":function(){define(["../_base/declare","../_base/window","../dom","../dom-attr","../dom-class","../dom-construct","../hccss","../query"],function(_45e,win,dom,_45f,_460,_461,has,_462){return _45e("dojo.dnd.Avatar",null,{constructor:function(_463){this.manager=_463;this.construct();},construct:function(){var a=_461.create("table",{"class":"dojoDndAvatar",style:{position:"absolute",zIndex:"1999",margin:"0px"}}),_464=this.manager.source,node,b=_461.create("tbody",null,a),tr=_461.create("tr",null,b),td=_461.create("td",null,tr),k=Math.min(5,this.manager.nodes.length),i=0;if(has("highcontrast")){_461.create("span",{id:"a11yIcon",innerHTML:this.manager.copy?"+":"<"},td);}_461.create("span",{innerHTML:_464.generateText?this._generateText():""},td);_45f.set(tr,{"class":"dojoDndAvatarHeader",style:{opacity:0.9}});for(;i<k;++i){if(_464.creator){node=_464._normalizedCreator(_464.getItem(this.manager.nodes[i].id).data,"avatar").node;}else{node=this.manager.nodes[i].cloneNode(true);if(node.tagName.toLowerCase()=="tr"){var _465=_461.create("table"),_466=_461.create("tbody",null,_465);_466.appendChild(node);node=_465;}}node.id="";tr=_461.create("tr",null,b);td=_461.create("td",null,tr);td.appendChild(node);_45f.set(tr,{"class":"dojoDndAvatarItem",style:{opacity:(9-i)/10}});}this.node=a;},destroy:function(){_461.destroy(this.node);this.node=false;},update:function(){_460.toggle(this.node,"dojoDndAvatarCanDrop",this.manager.canDropFlag);if(has("highcontrast")){var icon=dom.byId("a11yIcon");var text="+";if(this.manager.canDropFlag&&!this.manager.copy){text="< ";}else{if(!this.manager.canDropFlag&&!this.manager.copy){text="o";}else{if(!this.manager.canDropFlag){text="x";}}}icon.innerHTML=text;}_462(("tr.dojoDndAvatarHeader td span"+(has("highcontrast")?" span":"")),this.node).forEach(function(node){node.innerHTML=this.manager.source.generateText?this._generateText():"";},this);},_generateText:function(){return this.manager.nodes.length.toString();}});});},"dojox/grid/_SelectionPreserver":function(){define("dojox/grid/_SelectionPreserver",["dojo/_base/declare","dojo/_base/connect","dojo/_base/lang","dojo/_base/array"],function(_467,_468,lang,_469){return _467("dojox.grid._SelectionPreserver",null,{constructor:function(_46a){this.selection=_46a;var grid=this.grid=_46a.grid;this.reset();this._connects=[_468.connect(grid,"_setStore",this,"reset"),_468.connect(grid,"_addItem",this,"_reSelectById"),_468.connect(_46a,"onSelected",lang.hitch(this,"_selectById",true)),_468.connect(_46a,"onDeselected",lang.hitch(this,"_selectById",false)),_468.connect(_46a,"deselectAll",this,"reset")];},destroy:function(){this.reset();_469.forEach(this._connects,_468.disconnect);delete this._connects;},reset:function(){this._selectedById={};},_reSelectById:function(item,_46b){if(item&&this.grid._hasIdentity){this.selection.selected[_46b]=this._selectedById[this.grid.store.getIdentity(item)];}},_selectById:function(_46c,_46d){if(this.selection.mode=="none"||!this.grid._hasIdentity){return;}var item=_46d,g=this.grid;if(typeof _46d=="number"||typeof _46d=="string"){var _46e=g._by_idx[_46d];item=_46e&&_46e.item;}if(item){this._selectedById[g.store.getIdentity(item)]=!!_46c;}return item;}});});},"dojox/grid/_FocusManager":function(){define("dojox/grid/_FocusManager",["dojo/_base/array","dojo/_base/lang","dojo/_base/declare","dojo/_base/connect","dojo/_base/event","dojo/_base/sniff","dojo/query","./util","dojo/_base/html"],function(_46f,lang,_470,_471,_472,has,_473,util,html){return _470("dojox.grid._FocusManager",null,{constructor:function(_474){this.grid=_474;this.cell=null;this.rowIndex=-1;this._connects=[];this._headerConnects=[];this.headerMenu=this.grid.headerMenu;this._connects.push(_471.connect(this.grid.domNode,"onfocus",this,"doFocus"));this._connects.push(_471.connect(this.grid.domNode,"onblur",this,"doBlur"));this._connects.push(_471.connect(this.grid.domNode,"mousedown",this,"_mouseDown"));this._connects.push(_471.connect(this.grid.domNode,"mouseup",this,"_mouseUp"));this._connects.push(_471.connect(this.grid.domNode,"oncontextmenu",this,"doContextMenu"));this._connects.push(_471.connect(this.grid.lastFocusNode,"onfocus",this,"doLastNodeFocus"));this._connects.push(_471.connect(this.grid.lastFocusNode,"onblur",this,"doLastNodeBlur"));this._connects.push(_471.connect(this.grid,"_onFetchComplete",this,"_delayedCellFocus"));this._connects.push(_471.connect(this.grid,"postrender",this,"_delayedHeaderFocus"));},destroy:function(){_46f.forEach(this._connects,_471.disconnect);_46f.forEach(this._headerConnects,_471.disconnect);delete this.grid;delete this.cell;},_colHeadNode:null,_colHeadFocusIdx:null,_contextMenuBindNode:null,tabbingOut:false,focusClass:"dojoxGridCellFocus",focusView:null,initFocusView:function(){this.focusView=this.grid.views.getFirstScrollingView()||this.focusView||this.grid.views.views[0];this._initColumnHeaders();},isFocusCell:function(_475,_476){return (this.cell==_475)&&(this.rowIndex==_476);},isLastFocusCell:function(){if(this.cell){return (this.rowIndex==this.grid.rowCount-1)&&(this.cell.index==this.grid.layout.cellCount-1);}return false;},isFirstFocusCell:function(){if(this.cell){return (this.rowIndex===0)&&(this.cell.index===0);}return false;},isNoFocusCell:function(){return (this.rowIndex<0)||!this.cell;},isNavHeader:function(){return (!!this._colHeadNode);},getHeaderIndex:function(){if(this._colHeadNode){return _46f.indexOf(this._findHeaderCells(),this._colHeadNode);}else{return -1;}},_focusifyCellNode:function(_477){var n=this.cell&&this.cell.getNode(this.rowIndex);if(n){html.toggleClass(n,this.focusClass,_477);if(_477){var sl=this.scrollIntoView();try{if(has("webkit")||!this.grid.edit.isEditing()){util.fire(n,"focus");if(sl){this.cell.view.scrollboxNode.scrollLeft=sl;}}}catch(e){}}}},_delayedCellFocus:function(){if(this.isNavHeader()||!this.grid.focused){return;}var n=this.cell&&this.cell.getNode(this.rowIndex);if(n){try{if(!this.grid.edit.isEditing()){html.toggleClass(n,this.focusClass,true);if(this._colHeadNode){this.blurHeader();}util.fire(n,"focus");}}catch(e){}}},_delayedHeaderFocus:function(){if(this.isNavHeader()){this.focusHeader();}},_initColumnHeaders:function(){_46f.forEach(this._headerConnects,_471.disconnect);this._headerConnects=[];var _478=this._findHeaderCells();for(var i=0;i<_478.length;i++){this._headerConnects.push(_471.connect(_478[i],"onfocus",this,"doColHeaderFocus"));this._headerConnects.push(_471.connect(_478[i],"onblur",this,"doColHeaderBlur"));}},_findHeaderCells:function(){var _479=_473("th",this.grid.viewsHeaderNode);var _47a=[];for(var i=0;i<_479.length;i++){var _47b=_479[i];var _47c=html.hasAttr(_47b,"tabIndex");var _47d=html.attr(_47b,"tabIndex");if(_47c&&_47d<0){_47a.push(_47b);}}return _47a;},_setActiveColHeader:function(_47e,_47f,_480){this.grid.domNode.setAttribute("aria-activedescendant",_47e.id);if(_480!=null&&_480>=0&&_480!=_47f){html.toggleClass(this._findHeaderCells()[_480],this.focusClass,false);}html.toggleClass(_47e,this.focusClass,true);this._colHeadNode=_47e;this._colHeadFocusIdx=_47f;this._scrollHeader(this._colHeadFocusIdx);},scrollIntoView:function(){var info=(this.cell?this._scrollInfo(this.cell):null);if(!info||!info.s){return null;}var rt=this.grid.scroller.findScrollTop(this.rowIndex);if(info.n&&info.sr){if(info.n.offsetLeft+info.n.offsetWidth>info.sr.l+info.sr.w){info.s.scrollLeft=info.n.offsetLeft+info.n.offsetWidth-info.sr.w;}else{if(info.n.offsetLeft<info.sr.l){info.s.scrollLeft=info.n.offsetLeft;}}}if(info.r&&info.sr){if(rt+info.r.offsetHeight>info.sr.t+info.sr.h){this.grid.setScrollTop(rt+info.r.offsetHeight-info.sr.h);}else{if(rt<info.sr.t){this.grid.setScrollTop(rt);}}}return info.s.scrollLeft;},_scrollInfo:function(cell,_481){if(cell){var cl=cell,sbn=cl.view.scrollboxNode,sbnr={w:sbn.clientWidth,l:sbn.scrollLeft,t:sbn.scrollTop,h:sbn.clientHeight},rn=cl.view.getRowNode(this.rowIndex);return {c:cl,s:sbn,sr:sbnr,n:(_481?_481:cell.getNode(this.rowIndex)),r:rn};}return null;},_scrollHeader:function(_482){var info=null;if(this._colHeadNode){var cell=this.grid.getCell(_482);if(!cell){return;}info=this._scrollInfo(cell,cell.getNode(0));}if(info&&info.s&&info.sr&&info.n){var _483=info.sr.l+info.sr.w;if(info.n.offsetLeft+info.n.offsetWidth>_483){info.s.scrollLeft=info.n.offsetLeft+info.n.offsetWidth-info.sr.w;}else{if(info.n.offsetLeft<info.sr.l){info.s.scrollLeft=info.n.offsetLeft;}else{if(has("ie")<=7&&cell&&cell.view.headerNode){cell.view.headerNode.scrollLeft=info.s.scrollLeft;}}}}},_isHeaderHidden:function(){var _484=this.focusView;if(!_484){for(var i=0,_485;(_485=this.grid.views.views[i]);i++){if(_485.headerNode){_484=_485;break;}}}return (_484&&html.getComputedStyle(_484.headerNode).display=="none");},colSizeAdjust:function(e,_486,_487){var _488=this._findHeaderCells();var view=this.focusView;if(!view||!view.header.tableMap.map){for(var i=0,_489;(_489=this.grid.views.views[i]);i++){if(_489.header.tableMap.map){view=_489;break;}}}var _48a=_488[_486];if(!view||(_486==_488.length-1&&_486===0)){return;}view.content.baseDecorateEvent(e);e.cellNode=_48a;e.cellIndex=view.content.getCellNodeIndex(e.cellNode);e.cell=(e.cellIndex>=0?this.grid.getCell(e.cellIndex):null);if(view.header.canResize(e)){var _48b={l:_487};var drag=view.header.colResizeSetup(e,false);view.header.doResizeColumn(drag,null,_48b);view.update();}},styleRow:function(_48c){return;},setFocusIndex:function(_48d,_48e){this.setFocusCell(this.grid.getCell(_48e),_48d);},setFocusCell:function(_48f,_490){if(_48f&&!this.isFocusCell(_48f,_490)){this.tabbingOut=false;if(this._colHeadNode){this.blurHeader();}this._colHeadNode=this._colHeadFocusIdx=null;this.focusGridView();this._focusifyCellNode(false);this.cell=_48f;this.rowIndex=_490;this._focusifyCellNode(true);}if(has("opera")){setTimeout(lang.hitch(this.grid,"onCellFocus",this.cell,this.rowIndex),1);}else{this.grid.onCellFocus(this.cell,this.rowIndex);}},next:function(){if(this.cell){var row=this.rowIndex,col=this.cell.index+1,cc=this.grid.layout.cellCount-1,rc=this.grid.rowCount-1;if(col>cc){col=0;row++;}if(row>rc){col=cc;row=rc;}if(this.grid.edit.isEditing()){var _491=this.grid.getCell(col);if(!this.isLastFocusCell()&&(!_491.editable||this.grid.canEdit&&!this.grid.canEdit(_491,row))){this.cell=_491;this.rowIndex=row;this.next();return;}}this.setFocusIndex(row,col);}},previous:function(){if(this.cell){var row=(this.rowIndex||0),col=(this.cell.index||0)-1;if(col<0){col=this.grid.layout.cellCount-1;row--;}if(row<0){row=0;col=0;}if(this.grid.edit.isEditing()){var _492=this.grid.getCell(col);if(!this.isFirstFocusCell()&&!_492.editable){this.cell=_492;this.rowIndex=row;this.previous();return;}}this.setFocusIndex(row,col);}},move:function(_493,_494){var _495=_494<0?-1:1;if(this.isNavHeader()){var _496=this._findHeaderCells();var _497=currentIdx=_46f.indexOf(_496,this._colHeadNode);currentIdx+=_494;while(currentIdx>=0&&currentIdx<_496.length&&_496[currentIdx].style.display=="none"){currentIdx+=_495;}if((currentIdx>=0)&&(currentIdx<_496.length)){this._setActiveColHeader(_496[currentIdx],currentIdx,_497);}}else{if(this.cell){var sc=this.grid.scroller,r=this.rowIndex,rc=this.grid.rowCount-1,row=Math.min(rc,Math.max(0,r+_493));if(_493){if(_493>0){if(row>sc.getLastPageRow(sc.page)){this.grid.setScrollTop(this.grid.scrollTop+sc.findScrollTop(row)-sc.findScrollTop(r));}}else{if(_493<0){if(row<=sc.getPageRow(sc.page)){this.grid.setScrollTop(this.grid.scrollTop-sc.findScrollTop(r)-sc.findScrollTop(row));}}}}var cc=this.grid.layout.cellCount-1,i=this.cell.index,col=Math.min(cc,Math.max(0,i+_494));var cell=this.grid.getCell(col);while(col>=0&&col<cc&&cell&&cell.hidden===true){col+=_495;cell=this.grid.getCell(col);}if(!cell||cell.hidden===true){col=i;}var n=cell.getNode(row);if(!n&&_493){if((row+_493)>=0&&(row+_493)<=rc){this.move(_493>0?++_493:--_493,_494);}return;}else{if((!n||html.style(n,"display")==="none")&&_494){if((col+_494)>=0&&(col+_494)<=cc){this.move(_493,_494>0?++_494:--_494);}return;}}this.setFocusIndex(row,col);if(_493){this.grid.updateRow(r);}}}},previousKey:function(e){if(this.grid.edit.isEditing()){_472.stop(e);this.previous();}else{if(!this.isNavHeader()&&!this._isHeaderHidden()){this.grid.domNode.focus();_472.stop(e);}else{this.tabOut(this.grid.domNode);if(this._colHeadFocusIdx!=null){html.toggleClass(this._findHeaderCells()[this._colHeadFocusIdx],this.focusClass,false);this._colHeadFocusIdx=null;}this._focusifyCellNode(false);}}},nextKey:function(e){var _498=(this.grid.rowCount===0);if(e.target===this.grid.domNode&&this._colHeadFocusIdx==null){this.focusHeader();_472.stop(e);}else{if(this.isNavHeader()){this.blurHeader();if(!this.findAndFocusGridCell()){this.tabOut(this.grid.lastFocusNode);}this._colHeadNode=this._colHeadFocusIdx=null;}else{if(this.grid.edit.isEditing()){_472.stop(e);this.next();}else{this.tabOut(this.grid.lastFocusNode);}}}},tabOut:function(_499){this.tabbingOut=true;_499.focus();},focusGridView:function(){util.fire(this.focusView,"focus");},focusGrid:function(_49a){this.focusGridView();this._focusifyCellNode(true);},findAndFocusGridCell:function(){var _49b=true;var _49c=(this.grid.rowCount===0);if(this.isNoFocusCell()&&!_49c){var _49d=0;var cell=this.grid.getCell(_49d);if(cell.hidden){_49d=this.isNavHeader()?this._colHeadFocusIdx:0;}this.setFocusIndex(0,_49d);}else{if(this.cell&&!_49c){if(this.focusView&&!this.focusView.rowNodes[this.rowIndex]){this.grid.scrollToRow(this.rowIndex);}this.focusGrid();}else{_49b=false;}}this._colHeadNode=this._colHeadFocusIdx=null;return _49b;},focusHeader:function(){var _49e=this._findHeaderCells();var _49f=this._colHeadFocusIdx;if(this._isHeaderHidden()){this.findAndFocusGridCell();}else{if(!this._colHeadFocusIdx){if(this.isNoFocusCell()){this._colHeadFocusIdx=0;}else{this._colHeadFocusIdx=this.cell.index;}}}this._colHeadNode=_49e[this._colHeadFocusIdx];while(this._colHeadNode&&this._colHeadFocusIdx>=0&&this._colHeadFocusIdx<_49e.length&&this._colHeadNode.style.display=="none"){this._colHeadFocusIdx++;this._colHeadNode=_49e[this._colHeadFocusIdx];}if(this._colHeadNode&&this._colHeadNode.style.display!="none"){if(this.headerMenu&&this._contextMenuBindNode!=this.grid.domNode){this.headerMenu.unBindDomNode(this.grid.viewsHeaderNode);this.headerMenu.bindDomNode(this.grid.domNode);this._contextMenuBindNode=this.grid.domNode;}this._setActiveColHeader(this._colHeadNode,this._colHeadFocusIdx,_49f);this._scrollHeader(this._colHeadFocusIdx);this._focusifyCellNode(false);}else{this.findAndFocusGridCell();}},blurHeader:function(){html.removeClass(this._colHeadNode,this.focusClass);html.removeAttr(this.grid.domNode,"aria-activedescendant");if(this.headerMenu&&this._contextMenuBindNode==this.grid.domNode){var _4a0=this.grid.viewsHeaderNode;this.headerMenu.unBindDomNode(this.grid.domNode);this.headerMenu.bindDomNode(_4a0);this._contextMenuBindNode=_4a0;}},doFocus:function(e){if(e&&e.target!=e.currentTarget){_472.stop(e);return;}if(this._clickFocus){return;}if(!this.tabbingOut){this.focusHeader();}this.tabbingOut=false;_472.stop(e);},doBlur:function(e){_472.stop(e);},doContextMenu:function(e){if(!this.headerMenu){_472.stop(e);}},doLastNodeFocus:function(e){if(this.tabbingOut){this._focusifyCellNode(false);}else{if(this.grid.rowCount>0){if(this.isNoFocusCell()){this.setFocusIndex(0,0);}this._focusifyCellNode(true);}else{this.focusHeader();}}this.tabbingOut=false;_472.stop(e);},doLastNodeBlur:function(e){_472.stop(e);},doColHeaderFocus:function(e){this._setActiveColHeader(e.target,html.attr(e.target,"idx"),this._colHeadFocusIdx);this._scrollHeader(this.getHeaderIndex());_472.stop(e);},doColHeaderBlur:function(e){html.toggleClass(e.target,this.focusClass,false);},_mouseDown:function(e){this._clickFocus=dojo.some(this.grid.views.views,function(v){return v.scrollboxNode===e.target;});},_mouseUp:function(e){this._clickFocus=false;}});});},"dojox/grid/_Events":function(){define("dojox/grid/_Events",["dojo/keys","dojo/dom-class","dojo/_base/declare","dojo/_base/event","dojo/_base/sniff"],function(keys,_4a1,_4a2,_4a3,has){return _4a2("dojox.grid._Events",null,{cellOverClass:"dojoxGridCellOver",onKeyEvent:function(e){this.dispatchKeyEvent(e);},onContentEvent:function(e){this.dispatchContentEvent(e);},onHeaderEvent:function(e){this.dispatchHeaderEvent(e);},onStyleRow:function(_4a4){var i=_4a4;i.customClasses+=(i.odd?" dojoxGridRowOdd":"")+(i.selected?" dojoxGridRowSelected":"")+(i.over?" dojoxGridRowOver":"");this.focus.styleRow(_4a4);this.edit.styleRow(_4a4);},onKeyDown:function(e){if(e.altKey||e.metaKey){return;}var _4a5;switch(e.keyCode){case keys.ESCAPE:this.edit.cancel();break;case keys.ENTER:if(!this.edit.isEditing()){_4a5=this.focus.getHeaderIndex();if(_4a5>=0){this.setSortIndex(_4a5);break;}else{this.selection.clickSelect(this.focus.rowIndex,dojo.isCopyKey(e),e.shiftKey);}_4a3.stop(e);}if(!e.shiftKey){var _4a6=this.edit.isEditing();this.edit.apply();if(!_4a6){this.edit.setEditCell(this.focus.cell,this.focus.rowIndex);}}if(!this.edit.isEditing()){var _4a7=this.focus.focusView||this.views.views[0];_4a7.content.decorateEvent(e);this.onRowClick(e);_4a3.stop(e);}break;case keys.SPACE:if(!this.edit.isEditing()){_4a5=this.focus.getHeaderIndex();if(_4a5>=0){this.setSortIndex(_4a5);break;}else{this.selection.clickSelect(this.focus.rowIndex,dojo.isCopyKey(e),e.shiftKey);}_4a3.stop(e);}break;case keys.TAB:this.focus[e.shiftKey?"previousKey":"nextKey"](e);break;case keys.LEFT_ARROW:case keys.RIGHT_ARROW:if(!this.edit.isEditing()){var _4a8=e.keyCode;_4a3.stop(e);_4a5=this.focus.getHeaderIndex();if(_4a5>=0&&(e.shiftKey&&e.ctrlKey)){this.focus.colSizeAdjust(e,_4a5,(_4a8==keys.LEFT_ARROW?-1:1)*5);}else{var _4a9=(_4a8==keys.LEFT_ARROW)?1:-1;if(this.isLeftToRight()){_4a9*=-1;}this.focus.move(0,_4a9);}}break;case keys.UP_ARROW:if(!this.edit.isEditing()&&this.focus.rowIndex!==0){_4a3.stop(e);this.focus.move(-1,0);}break;case keys.DOWN_ARROW:if(!this.edit.isEditing()&&this.focus.rowIndex+1!=this.rowCount){_4a3.stop(e);this.focus.move(1,0);}break;case keys.PAGE_UP:if(!this.edit.isEditing()&&this.focus.rowIndex!==0){_4a3.stop(e);if(this.focus.rowIndex!=this.scroller.firstVisibleRow+1){this.focus.move(this.scroller.firstVisibleRow-this.focus.rowIndex,0);}else{this.setScrollTop(this.scroller.findScrollTop(this.focus.rowIndex-1));this.focus.move(this.scroller.firstVisibleRow-this.scroller.lastVisibleRow+1,0);}}break;case keys.PAGE_DOWN:if(!this.edit.isEditing()&&this.focus.rowIndex+1!=this.rowCount){_4a3.stop(e);if(this.focus.rowIndex!=this.scroller.lastVisibleRow-1){this.focus.move(this.scroller.lastVisibleRow-this.focus.rowIndex-1,0);}else{this.setScrollTop(this.scroller.findScrollTop(this.focus.rowIndex+1));this.focus.move(this.scroller.lastVisibleRow-this.scroller.firstVisibleRow-1,0);}}break;default:break;}},onMouseOver:function(e){e.rowIndex==-1?this.onHeaderCellMouseOver(e):this.onCellMouseOver(e);},onMouseOut:function(e){e.rowIndex==-1?this.onHeaderCellMouseOut(e):this.onCellMouseOut(e);},onMouseDown:function(e){e.rowIndex==-1?this.onHeaderCellMouseDown(e):this.onCellMouseDown(e);},onMouseOverRow:function(e){if(!this.rows.isOver(e.rowIndex)){this.rows.setOverRow(e.rowIndex);e.rowIndex==-1?this.onHeaderMouseOver(e):this.onRowMouseOver(e);}},onMouseOutRow:function(e){if(this.rows.isOver(-1)){this.onHeaderMouseOut(e);}else{if(!this.rows.isOver(-2)){this.rows.setOverRow(-2);this.onRowMouseOut(e);}}},onMouseDownRow:function(e){if(e.rowIndex!=-1){this.onRowMouseDown(e);}},onCellMouseOver:function(e){if(e.cellNode){_4a1.add(e.cellNode,this.cellOverClass);}},onCellMouseOut:function(e){if(e.cellNode){_4a1.remove(e.cellNode,this.cellOverClass);}},onCellMouseDown:function(e){},onCellClick:function(e){this._click[0]=this._click[1];this._click[1]=e;if(!this.edit.isEditCell(e.rowIndex,e.cellIndex)){this.focus.setFocusCell(e.cell,e.rowIndex);}if(this._click.length>1&&this._click[0]==null){this._click.shift();}this.onRowClick(e);},onCellDblClick:function(e){var _4aa;if(this._click.length>1&&has("ie")){_4aa=this._click[1];}else{if(this._click.length>1&&this._click[0].rowIndex!=this._click[1].rowIndex){_4aa=this._click[0];}else{_4aa=e;}}this.focus.setFocusCell(_4aa.cell,_4aa.rowIndex);this.onRowClick(_4aa);this.edit.setEditCell(_4aa.cell,_4aa.rowIndex);this.onRowDblClick(e);},onCellContextMenu:function(e){this.onRowContextMenu(e);},onCellFocus:function(_4ab,_4ac){this.edit.cellFocus(_4ab,_4ac);},onRowClick:function(e){this.edit.rowClick(e);this.selection.clickSelectEvent(e);},onRowDblClick:function(e){},onRowMouseOver:function(e){},onRowMouseOut:function(e){},onRowMouseDown:function(e){},onRowContextMenu:function(e){_4a3.stop(e);},onHeaderMouseOver:function(e){},onHeaderMouseOut:function(e){},onHeaderCellMouseOver:function(e){if(e.cellNode){_4a1.add(e.cellNode,this.cellOverClass);}},onHeaderCellMouseOut:function(e){if(e.cellNode){_4a1.remove(e.cellNode,this.cellOverClass);}},onHeaderCellMouseDown:function(e){},onHeaderClick:function(e){},onHeaderCellClick:function(e){this.setSortIndex(e.cell.index);this.onHeaderClick(e);},onHeaderDblClick:function(e){},onHeaderCellDblClick:function(e){this.onHeaderDblClick(e);},onHeaderCellContextMenu:function(e){this.onHeaderContextMenu(e);},onHeaderContextMenu:function(e){if(!this.headerMenu){_4a3.stop(e);}},onStartEdit:function(_4ad,_4ae){},onApplyCellEdit:function(_4af,_4b0,_4b1){},onCancelEdit:function(_4b2){},onApplyEdit:function(_4b3){},onCanSelect:function(_4b4){return true;},onCanDeselect:function(_4b5){return true;},onSelected:function(_4b6){this.updateRowStyles(_4b6);},onDeselected:function(_4b7){this.updateRowStyles(_4b7);},onSelectionChanged:function(){}});});},"dijit/MenuItem":function(){require({cache:{"url:dijit/templates/MenuItem.html":"<tr class=\"dijitReset dijitMenuItem\" data-dojo-attach-point=\"focusNode\" role=\"menuitem\" tabIndex=\"-1\">\n\t<td class=\"dijitReset dijitMenuItemIconCell\" role=\"presentation\">\n\t\t<img src=\"${_blankGif}\" alt=\"\" class=\"dijitIcon dijitMenuItemIcon\" data-dojo-attach-point=\"iconNode\"/>\n\t</td>\n\t<td class=\"dijitReset dijitMenuItemLabel\" colspan=\"2\" data-dojo-attach-point=\"containerNode\"></td>\n\t<td class=\"dijitReset dijitMenuItemAccelKey\" style=\"display: none\" data-dojo-attach-point=\"accelKeyNode\"></td>\n\t<td class=\"dijitReset dijitMenuArrowCell\" role=\"presentation\">\n\t\t<div data-dojo-attach-point=\"arrowWrapper\" style=\"visibility: hidden\">\n\t\t\t<img src=\"${_blankGif}\" alt=\"\" class=\"dijitMenuExpand\"/>\n\t\t\t<span class=\"dijitMenuExpandA11y\">+</span>\n\t\t</div>\n\t</td>\n</tr>\n"}});define("dijit/MenuItem",["dojo/_base/declare","dojo/dom","dojo/dom-attr","dojo/dom-class","dojo/_base/kernel","dojo/sniff","./_Widget","./_TemplatedMixin","./_Contained","./_CssStateMixin","dojo/text!./templates/MenuItem.html"],function(_4b8,dom,_4b9,_4ba,_4bb,has,_4bc,_4bd,_4be,_4bf,_4c0){return _4b8("dijit.MenuItem",[_4bc,_4bd,_4be,_4bf],{templateString:_4c0,baseClass:"dijitMenuItem",label:"",_setLabelAttr:function(val){this.containerNode.innerHTML=val;this._set("label",val);if(this.textDir==="auto"){this.applyTextDir(this.focusNode,this.label);}},iconClass:"dijitNoIcon",_setIconClassAttr:{node:"iconNode",type:"class"},accelKey:"",disabled:false,_fillContent:function(_4c1){if(_4c1&&!("label" in this.params)){this.set("label",_4c1.innerHTML);}},buildRendering:function(){this.inherited(arguments);var _4c2=this.id+"_text";_4b9.set(this.containerNode,"id",_4c2);if(this.accelKeyNode){_4b9.set(this.accelKeyNode,"id",this.id+"_accel");_4c2+=" "+this.id+"_accel";}this.domNode.setAttribute("aria-labelledby",_4c2);dom.setSelectable(this.domNode,false);},onClick:function(){},focus:function(){try{if(has("ie")==8){this.containerNode.focus();}this.focusNode.focus();}catch(e){}},_onFocus:function(){this._setSelected(true);this.getParent()._onItemFocus(this);this.inherited(arguments);},_setSelected:function(_4c3){_4ba.toggle(this.domNode,"dijitMenuItemSelected",_4c3);},setLabel:function(_4c4){_4bb.deprecated("dijit.MenuItem.setLabel() is deprecated.  Use set('label', ...) instead.","","2.0");this.set("label",_4c4);},setDisabled:function(_4c5){_4bb.deprecated("dijit.Menu.setDisabled() is deprecated.  Use set('disabled', bool) instead.","","2.0");this.set("disabled",_4c5);},_setDisabledAttr:function(_4c6){this.focusNode.setAttribute("aria-disabled",_4c6?"true":"false");this._set("disabled",_4c6);},_setAccelKeyAttr:function(_4c7){this.accelKeyNode.style.display=_4c7?"":"none";this.accelKeyNode.innerHTML=_4c7;_4b9.set(this.containerNode,"colSpan",_4c7?"1":"2");this._set("accelKey",_4c7);},_setTextDirAttr:function(_4c8){if(!this._created||this.textDir!=_4c8){this._set("textDir",_4c8);this.applyTextDir(this.focusNode,this.label);}}});});},"dojox/grid/_RowSelector":function(){define(["dojo/_base/declare","./_View"],function(_4c9,_4ca){return _4c9("dojox.grid._RowSelector",_4ca,{defaultWidth:"2em",noscroll:true,padBorderWidth:2,buildRendering:function(){this.inherited("buildRendering",arguments);this.scrollboxNode.style.overflow="hidden";this.headerNode.style.visibility="hidden";},getWidth:function(){return this.viewWidth||this.defaultWidth;},buildRowContent:function(_4cb,_4cc){var w=this.contentWidth||0;_4cc.innerHTML="<table class=\"dojoxGridRowbarTable\" style=\"width:"+w+"px;height:1px;\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" role=\"presentation\"><tr><td class=\"dojoxGridRowbarInner\">&nbsp;</td></tr></table>";},renderHeader:function(){},updateRow:function(){},resize:function(){this.adaptHeight();},adaptWidth:function(){if(!("contentWidth" in this)&&this.contentNode&&this.contentNode.offsetWidth>0){this.contentWidth=this.contentNode.offsetWidth-this.padBorderWidth;}},doStyleRowNode:function(_4cd,_4ce){var n=["dojoxGridRowbar dojoxGridNonNormalizedCell"];if(this.grid.rows.isOver(_4cd)){n.push("dojoxGridRowbarOver");}if(this.grid.selection.isSelected(_4cd)){n.push("dojoxGridRowbarSelected");}_4ce.className=n.join(" ");},domouseover:function(e){this.grid.onMouseOverRow(e);},domouseout:function(e){if(!this.isIntraRowEvent(e)){this.grid.onMouseOutRow(e);}}});});},"*now":function(r){r(["dojo/i18n!*preload*dojox/grid/nls/DataGrid*[\"ar\",\"ca\",\"cs\",\"da\",\"de\",\"el\",\"en-gb\",\"en-us\",\"es-es\",\"fi-fi\",\"fr-fr\",\"he-il\",\"hu\",\"it-it\",\"ja-jp\",\"ko-kr\",\"nl-nl\",\"nb\",\"pl\",\"pt-br\",\"pt-pt\",\"ru\",\"sk\",\"sl\",\"sv\",\"th\",\"tr\",\"zh-tw\",\"zh-cn\",\"ROOT\"]"]);}}});define("dojox/grid/DataGrid",["../main","dojo/_base/array","dojo/_base/lang","dojo/_base/json","dojo/_base/sniff","dojo/_base/declare","./_Grid","./DataSelection","dojo/_base/html"],function(_4cf,_4d0,lang,json,has,_4d1,_4d2,_4d3,html){var _4d4=_4d1("dojox.grid.DataGrid",_4d2,{store:null,query:null,queryOptions:null,fetchText:"...",sortFields:null,updateDelay:1,items:null,_store_connects:null,_by_idty:null,_by_idx:null,_cache:null,_pages:null,_pending_requests:null,_bop:-1,_eop:-1,_requests:0,rowCount:0,_isLoaded:false,_isLoading:false,keepSelection:false,postCreate:function(){this._pages=[];this._store_connects=[];this._by_idty={};this._by_idx=[];this._cache=[];this._pending_requests={};this._setStore(this.store);this.inherited(arguments);},destroy:function(){this.selection.destroy();this.inherited(arguments);},createSelection:function(){this.selection=new _4d3(this);},get:function(_4d5,_4d6){if(_4d6&&this.field=="_item"&&!this.fields){return _4d6;}else{if(_4d6&&this.fields){var ret=[];var s=this.grid.store;_4d0.forEach(this.fields,function(f){ret=ret.concat(s.getValues(_4d6,f));});return ret;}else{if(!_4d6&&typeof _4d5==="string"){return this.inherited(arguments);}}}return (!_4d6?this.defaultValue:(!this.field?this.value:(this.field=="_item"?_4d6:this.grid.store.getValue(_4d6,this.field))));},_checkUpdateStatus:function(){if(this.updateDelay>0){var _4d7=false;if(this._endUpdateDelay){clearTimeout(this._endUpdateDelay);delete this._endUpdateDelay;_4d7=true;}if(!this.updating){this.beginUpdate();_4d7=true;}if(_4d7){var _4d8=this;this._endUpdateDelay=setTimeout(function(){delete _4d8._endUpdateDelay;_4d8.endUpdate();},this.updateDelay);}}},_onSet:function(item,_4d9,_4da,_4db){this._checkUpdateStatus();var idx=this.getItemIndex(item);if(idx>-1){this.updateRow(idx);}},_createItem:function(item,_4dc){var idty=this._hasIdentity?this.store.getIdentity(item):json.toJson(this.query)+":idx:"+_4dc+":sort:"+json.toJson(this.getSortProps());var o=this._by_idty[idty]={idty:idty,item:item};return o;},_addItem:function(item,_4dd,_4de){this._by_idx[_4dd]=this._createItem(item,_4dd);if(!_4de){this.updateRow(_4dd);}},_onNew:function(item,_4df){this._checkUpdateStatus();var _4e0=this.get("rowCount");this._addingItem=true;this.updateRowCount(_4e0+1);this._addingItem=false;this._addItem(item,_4e0);this.showMessage();},_onDelete:function(item){this._checkUpdateStatus();var idx=this._getItemIndex(item,true);if(idx>=0){this._pages=[];this._bop=-1;this._eop=-1;var o=this._by_idx[idx];this._by_idx.splice(idx,1);delete this._by_idty[o.idty];this.updateRowCount(this.get("rowCount")-1);if(this.get("rowCount")===0){this.showMessage(this.noDataMessage);}}if(this.selection.isSelected(idx)){this.selection.deselect(idx);this.selection.selected.splice(idx,1);}},_onRevert:function(){this._refresh();},setStore:function(_4e1,_4e2,_4e3){if(this._requestsPending(0)){return;}this._setQuery(_4e2,_4e3);this._setStore(_4e1);this._refresh(true);},setQuery:function(_4e4,_4e5){if(this._requestsPending(0)){return;}this._setQuery(_4e4,_4e5);this._refresh(true);},setItems:function(_4e6){this.items=_4e6;this._setStore(this.store);this._refresh(true);},_setQuery:function(_4e7,_4e8){this.query=_4e7;this.queryOptions=_4e8||this.queryOptions;},_setStore:function(_4e9){if(this.store&&this._store_connects){_4d0.forEach(this._store_connects,this.disconnect,this);}this.store=_4e9;if(this.store){var f=this.store.getFeatures();var h=[];this._canEdit=!!f["dojo.data.api.Write"]&&!!f["dojo.data.api.Identity"];this._hasIdentity=!!f["dojo.data.api.Identity"];if(!!f["dojo.data.api.Notification"]&&!this.items){h.push(this.connect(this.store,"onSet","_onSet"));h.push(this.connect(this.store,"onNew","_onNew"));h.push(this.connect(this.store,"onDelete","_onDelete"));}if(this._canEdit){h.push(this.connect(this.store,"revert","_onRevert"));}this._store_connects=h;}},_onFetchBegin:function(size,req){if(!this.scroller){return;}if(this.rowCount!=size){if(req.isRender){this.scroller.init(size,this.keepRows,this.rowsPerPage);this.rowCount=size;this._setAutoHeightAttr(this.autoHeight,true);this._skipRowRenormalize=true;this.prerender();this._skipRowRenormalize=false;}else{this.updateRowCount(size);}}if(!size){this.views.render();this._resize();this.showMessage(this.noDataMessage);this.focus.initFocusView();}else{this.showMessage();}},_onFetchComplete:function(_4ea,req){if(!this.scroller){return;}if(_4ea&&_4ea.length>0){_4d0.forEach(_4ea,function(item,idx){this._addItem(item,req.start+idx,true);},this);this.updateRows(req.start,_4ea.length);if(req.isRender){this.setScrollTop(0);this.postrender();}else{if(this._lastScrollTop){this.setScrollTop(this._lastScrollTop);}}if(has("ie")){html.setSelectable(this.domNode,this.selectable);}}delete this._lastScrollTop;if(!this._isLoaded){this._isLoading=false;this._isLoaded=true;}this._pending_requests[req.start]=false;},_onFetchError:function(err,req){delete this._lastScrollTop;if(!this._isLoaded){this._isLoading=false;this._isLoaded=true;this.showMessage(this.errorMessage);}this._pending_requests[req.start]=false;this.onFetchError(err,req);},onFetchError:function(err,req){},_fetch:function(_4eb,_4ec){_4eb=_4eb||0;if(this.store&&!this._pending_requests[_4eb]){if(!this._isLoaded&&!this._isLoading){this._isLoading=true;this.showMessage(this.loadingMessage);}this._pending_requests[_4eb]=true;try{if(this.items){var _4ed=this.items;var _4ee=this.store;this.rowsPerPage=_4ed.length;var req={start:_4eb,count:this.rowsPerPage,isRender:_4ec};this._onFetchBegin(_4ed.length,req);var _4ef=0;_4d0.forEach(_4ed,function(i){if(!_4ee.isItemLoaded(i)){_4ef++;}});if(_4ef===0){this._onFetchComplete(_4ed,req);}else{var _4f0=function(item){_4ef--;if(_4ef===0){this._onFetchComplete(_4ed,req);}};_4d0.forEach(_4ed,function(i){if(!_4ee.isItemLoaded(i)){_4ee.loadItem({item:i,onItem:_4f0,scope:this});}},this);}}else{this.store.fetch({start:_4eb,count:this.rowsPerPage,query:this.query,sort:this.getSortProps(),queryOptions:this.queryOptions,isRender:_4ec,onBegin:lang.hitch(this,"_onFetchBegin"),onComplete:lang.hitch(this,"_onFetchComplete"),onError:lang.hitch(this,"_onFetchError")});}}catch(e){this._onFetchError(e,{start:_4eb,count:this.rowsPerPage});}}},_clearData:function(){this.updateRowCount(0);this._by_idty={};this._by_idx=[];this._pages=[];this._bop=this._eop=-1;this._isLoaded=false;this._isLoading=false;},getItem:function(idx){var data=this._by_idx[idx];if(!data||(data&&!data.item)){this._preparePage(idx);return null;}return data.item;},getItemIndex:function(item){return this._getItemIndex(item,false);},_getItemIndex:function(item,_4f1){if(!_4f1&&!this.store.isItem(item)){return -1;}var idty=this._hasIdentity?this.store.getIdentity(item):null;for(var i=0,l=this._by_idx.length;i<l;i++){var d=this._by_idx[i];if(d&&((idty&&d.idty==idty)||(d.item===item))){return i;}}return -1;},filter:function(_4f2,_4f3){this.query=_4f2;if(_4f3){this._clearData();}this._fetch();},_getItemAttr:function(idx,attr){var item=this.getItem(idx);return (!item?this.fetchText:this.store.getValue(item,attr));},_render:function(){if(this.domNode.parentNode){this.scroller.init(this.get("rowCount"),this.keepRows,this.rowsPerPage);this.prerender();this._fetch(0,true);}},_requestsPending:function(_4f4){return this._pending_requests[_4f4];},_rowToPage:function(_4f5){return (this.rowsPerPage?Math.floor(_4f5/this.rowsPerPage):_4f5);},_pageToRow:function(_4f6){return (this.rowsPerPage?this.rowsPerPage*_4f6:_4f6);},_preparePage:function(_4f7){if((_4f7<this._bop||_4f7>=this._eop)&&!this._addingItem){var _4f8=this._rowToPage(_4f7);this._needPage(_4f8);this._bop=_4f8*this.rowsPerPage;this._eop=this._bop+(this.rowsPerPage||this.get("rowCount"));}},_needPage:function(_4f9){if(!this._pages[_4f9]){this._pages[_4f9]=true;this._requestPage(_4f9);}},_requestPage:function(_4fa){var row=this._pageToRow(_4fa);var _4fb=Math.min(this.rowsPerPage,this.get("rowCount")-row);if(_4fb>0){this._requests++;if(!this._requestsPending(row)){setTimeout(lang.hitch(this,"_fetch",row,false),1);}}},getCellName:function(_4fc){return _4fc.field;},_refresh:function(_4fd){this._clearData();this._fetch(0,_4fd);},sort:function(){this.edit.apply();this._lastScrollTop=this.scrollTop;this._refresh();},canSort:function(){return (!this._isLoading);},getSortProps:function(){var c=this.getCell(this.getSortIndex());if(!c){if(this.sortFields){return this.sortFields;}return null;}else{var desc=c["sortDesc"];var si=!(this.sortInfo>0);if(typeof desc=="undefined"){desc=si;}else{desc=si?!desc:desc;}return [{attribute:c.field,descending:desc}];}},styleRowState:function(_4fe){if(this.store&&this.store.getState){var _4ff=this.store.getState(_4fe.index),c="";for(var i=0,ss=["inflight","error","inserting"],s;s=ss[i];i++){if(_4ff[s]){c=" dojoxGridRow-"+s;break;}}_4fe.customClasses+=c;}},onStyleRow:function(_500){this.styleRowState(_500);this.inherited(arguments);},canEdit:function(_501,_502){return this._canEdit;},_copyAttr:function(idx,attr){var row={};var _503={};var src=this.getItem(idx);return this.store.getValue(src,attr);},doStartEdit:function(_504,_505){if(!this._cache[_505]){this._cache[_505]=this._copyAttr(_505,_504.field);}this.onStartEdit(_504,_505);},doApplyCellEdit:function(_506,_507,_508){this.store.fetchItemByIdentity({identity:this._by_idx[_507].idty,onItem:lang.hitch(this,function(item){var _509=this.store.getValue(item,_508);if(typeof _509=="number"){_506=isNaN(_506)?_506:parseFloat(_506);}else{if(typeof _509=="boolean"){_506=_506=="true"?true:_506=="false"?false:_506;}else{if(_509 instanceof Date){var _50a=new Date(_506);_506=isNaN(_50a.getTime())?_506:_50a;}}}this.store.setValue(item,_508,_506);this.onApplyCellEdit(_506,_507,_508);})});},doCancelEdit:function(_50b){var _50c=this._cache[_50b];if(_50c){this.updateRow(_50b);delete this._cache[_50b];}this.onCancelEdit.apply(this,arguments);},doApplyEdit:function(_50d,_50e){var _50f=this._cache[_50d];this.onApplyEdit(_50d);},removeSelectedRows:function(){if(this._canEdit){this.edit.apply();var fx=lang.hitch(this,function(_510){if(_510.length){_4d0.forEach(_510,this.store.deleteItem,this.store);this.selection.clear();}});if(this.allItemsSelected){this.store.fetch({query:this.query,queryOptions:this.queryOptions,onComplete:fx});}else{fx(this.selection.getSelected());}}}});_4d4.cell_markupFactory=function(_511,node,_512){var _513=lang.trim(html.attr(node,"field")||"");if(_513){_512.field=_513;}_512.field=_512.field||_512.name;var _514=lang.trim(html.attr(node,"fields")||"");if(_514){_512.fields=_514.split(",");}if(_511){_511(node,_512);}};_4d4.markupFactory=function(_515,node,ctor,_516){return _4d2.markupFactory(_515,node,ctor,lang.partial(_4d4.cell_markupFactory,_516));};return _4d4;});